[jboss-user] [Beginners Corner] - modalPanel

flavor rose do-not-reply at jboss.com
Thu Jun 4 08:37:20 EDT 2009


Hi, I'm new to richfaces and kind of stuck and hoping someone here could help me. :)

I have a modalPanel that has two commandLink, and when you click on one of the commandLinks the text should change. Is it possible to do this in a modalPanel and which component can I use for this?

  |   <rich:modalPanel id="Panel" width="300" height="280">
  |    <f:facet name="header">
  |     <h:panelGroup>
  |      <h:outputText value="Header" />
  |     </h:panelGroup>
  |    </f:facet>
  |    <f:facet name="controls">
  |     <h:graphicImage value="../images/x.gif"
  |       style="cursor:pointer; margin-top: 0.3em; margin-right: 0.3em;"
  |       onclick="hideModalPanel('Panel'); return false;" />
  |    </f:facet>
  |    <a4j:commandLink value="link1" name="link1" />
  |      <rich:spacer width="5px" /> 
  |    <a4j:commandLink value="link2" name="link2" />
  |    <br /><br />
  |    <p>I want this text to change when you click on link1 or  
  |          link2.</p>                  
  |   </rich:modalPanel>

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235332#4235332

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235332



More information about the jboss-user mailing list