This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Feb 14, 2012, 5:00 PM
63 Posts
topic has been resolvedResolved

Equivalent of the f:attribute JSF tag in Xpages

  • Category: Custom JSF code (Eclipse IDE)
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: validator,attribute,JSF,Xpages
  • Replies: 3
Hey Guys and Gals!  Happy Valentine's Day...  Be nice your girl or partner or next door neighbour today, I mean it, I can see you, the Love Police will come and get ya!  Hee hee...
 
Anyway, look it, I am trying to write an email confirmation for one of our Apps, using below URL sample.  I can't seem to find an equivalence to the f:attribute that is standard is JSF, can you help? 
 
    <f:validator validatorId="confirmPasswordValidator" /> 
   
<f:attribute name="passwordComponent" value="#{passwordComponent}" />
 
 
I did find a xp:dojoAttribute but that did not do ther trick, or perhaps I just don't know how to use it.  Would you please help this Cupid?
 
Any reference you have will be sufficient.... thanks!  
Feb 15, 2012, 10:11 AM
272 Posts
Re: Equivalent of the f:attribute JSF tag in Xpages
Hi,
 
with the f:attribute-Tag you can assign a value to a component. In this case the attribute is used to tell the validator which input field has to be validated.

Hope this helps
Sven
 
 
Edit:
Sorry, the code was for validating emails... Don't know why. But please have a look in the page about validators.
Feb 15, 2012, 3:21 PM
63 Posts
Re: Equivalent of the f:attribute JSF tag in Xpages
no apologies necessary, you actually saved me here...  I think what I need is this: 
[CODE] 
 
<xp:this.expression><![CDATA[#{javascript:
        if (getComponent("Password").getSubmittedValue() != getComponent("ConfirmPassword").getSubmittedValue()) 
        { 
          return false; 
        } 
        else 
        { 
          return true; 
        } 
      }]]></xp:this.expression> 
 
 
[/CODE] 
 
Should help load the Java code through, I suspect I should be okay... Will play around with it and post the finished product.
 
Good to know of the SSJS option...  Steering away from SSJS embedded Xpages UIs for this project, but it can be of good use for others. 
 
Thank you kindly:-)  

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal