<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Displaying and Rerendering a RichFaces ModalPanel from a commandLink</title>
	<atom:link href="http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html</link>
	<description>Java, ATG, Seam, and related Technologies</description>
	<pubDate>Thu, 20 Nov 2008 23:05:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Val</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-13669</link>
		<dc:creator>Val</dc:creator>
		<pubDate>Mon, 17 Nov 2008 20:42:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-13669</guid>
		<description>Thanks for the nice post... I am very much new to this.... Please help what can be trick....

Parent window have some form fields, I am able to open a model panel from parent form...

a) When I click "Save" in model panel, parent form fields becomes null...

b) My purpose is to allow user to fill some filed (like panelText1) in model panel and on clicking Save I can show the value entered in model panel in the parent form (s:label id="valueFromModelPanel"....)
Please help what can be trick....
&lt;code&gt;
&#60;h:form id="project" styleClass="edit"&#62;
 &#60;h:inputText id="projectCode" required="true" value="#{projectHome.instance.projectCode}"/&#62;
 &#60;h:inputText id="projectName" required="true" value="#{projectHome.instance.projectName}"/&#62;
 
 ... other fields

 &#60;s:label id="valueFromModelPanel" value="#{xxxxHome.instance.value}"/&#62;
 
 &#60;h:outputLink value="#" id="link"&#62;
  Show Modal Panel
  &#60;rich:componentControl for="panel" attachTo="link" operation="show" event="onclick"/&#62;
 &#60;/h:outputLink&#62;
&#60;h:form&#62;

&#60;rich:modalPanel id="panel" width="350" height="100"&#62;
 &#60;f:facet name="header"&#62;
  &#60;h:panelGroup&#62;
   &#60;h:outputText value="Modal Panel"&#62;&#60;/h:outputText&#62;
  &#60;/h:panelGroup&#62;
 &#60;/f:facet&#62;
 &#60;h:outputText value="This panel is called using Component Control Component"&#62;&#60;/h:outputText&#62;
 &#60;br/&#62;
 &#60;h:panelGroup&#62;
 &#60;h:form&#62;
  &#60;h:inputText id="panelText1" required="true" value="#{xxxxHome.instance.value}"/&#62;
  &#60;s:link value="Save" style="cursor:pointer" id="hidelink"/&#62;
  &#60;rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/&#62;
  &#60;/h:form&#62;
 &#60;/h:panelGroup&#62; 
&#60;/rich:modalPanel&#62;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for the nice post&#8230; I am very much new to this&#8230;. Please help what can be trick&#8230;.</p>
<p>Parent window have some form fields, I am able to open a model panel from parent form&#8230;</p>
<p>a) When I click &#8220;Save&#8221; in model panel, parent form fields becomes null&#8230;</p>
<p>b) My purpose is to allow user to fill some filed (like panelText1) in model panel and on clicking Save I can show the value entered in model panel in the parent form (s:label id=&#8221;valueFromModelPanel&#8221;&#8230;.)<br />
Please help what can be trick&#8230;.<br />
<code><br />
&lt;h:form id="project" styleClass="edit"&gt;<br />
 &lt;h:inputText id="projectCode" required="true" value="#{projectHome.instance.projectCode}"/&gt;<br />
 &lt;h:inputText id="projectName" required="true" value="#{projectHome.instance.projectName}"/&gt;</p>
<p> ... other fields</p>
<p> &lt;s:label id="valueFromModelPanel" value="#{xxxxHome.instance.value}"/&gt;</p>
<p> &lt;h:outputLink value="#" id="link"&gt;<br />
  Show Modal Panel<br />
  &lt;rich:componentControl for="panel" attachTo="link" operation="show" event="onclick"/&gt;<br />
 &lt;/h:outputLink&gt;<br />
&lt;h:form&gt;</p>
<p>&lt;rich:modalPanel id="panel" width="350" height="100"&gt;<br />
 &lt;f:facet name="header"&gt;<br />
  &lt;h:panelGroup&gt;<br />
   &lt;h:outputText value="Modal Panel"&gt;&lt;/h:outputText&gt;<br />
  &lt;/h:panelGroup&gt;<br />
 &lt;/f:facet&gt;<br />
 &lt;h:outputText value="This panel is called using Component Control Component"&gt;&lt;/h:outputText&gt;<br />
 &lt;br/&gt;<br />
 &lt;h:panelGroup&gt;<br />
 &lt;h:form&gt;<br />
  &lt;h:inputText id="panelText1" required="true" value="#{xxxxHome.instance.value}"/&gt;<br />
  &lt;s:link value="Save" style="cursor:pointer" id="hidelink"/&gt;<br />
  &lt;rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/&gt;<br />
  &lt;/h:form&gt;<br />
 &lt;/h:panelGroup&gt;<br />
&lt;/rich:modalPanel&gt;<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jmb</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-13060</link>
		<dc:creator>jmb</dc:creator>
		<pubDate>Wed, 22 Oct 2008 07:55:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-13060</guid>
		<description>Hi,

sorry to revive this thread but I've a an issue which is sort of related to one of the comments here about ajaxSupport.

I have successfully built a composite component which is completely designed in java rather than a template (many reason, don't want to bore you).  Upshot is that a dev can simply put &#60;gls:Search ..attrs../&#62; on their page to get a complete panel which provides search capabilities.

OK, enough history.

My problem is that I want to use a &#60;a4j:commandButton&#62; to submit the form so we can rerender only the component the search is directed at.

In the Search component initialisition code i have

&lt;b&gt;        HtmlAjaxCommandButton button = ( HtmlAjaxCommandButton )context.getApplication().createComponent(   HtmlAjaxCommandButton.COMPONENT_TYPE );
        button.setId( "searchButton" );
        button.setValue( "Search" );
        button.setOnclick( (String )getAttributes().get( "onSearchClick" ) ); //javascript to run when clicked
        button.setOncomplete( (String )getAttributes().get( "onSearchComplete" ) ); //javascript to run after complete
        button.setAction( app.createMethodBinding( "#{" + backingBean + ".submitSearch}", null ) );&lt;/b&gt;

This button only works once...and I'm complete stumped.

Putting the &#60;a4j:commandButton&#62; as a hidden child of the &#60;gls:Search ..attrs../&#62; on a jsp/xhtml page and calling .click() using javascript works fine everytime.

Anyone have any idea why the a4j button isn't submitting after subsequent keypresses when it is added programmatically ?

btw...it's just about relevant to this blog entry as I'm trying to do the same thing from a rich:modalPanel with the same issue.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>sorry to revive this thread but I&#8217;ve a an issue which is sort of related to one of the comments here about ajaxSupport.</p>
<p>I have successfully built a composite component which is completely designed in java rather than a template (many reason, don&#8217;t want to bore you).  Upshot is that a dev can simply put &lt;gls:Search ..attrs../&gt; on their page to get a complete panel which provides search capabilities.</p>
<p>OK, enough history.</p>
<p>My problem is that I want to use a &lt;a4j:commandButton&gt; to submit the form so we can rerender only the component the search is directed at.</p>
<p>In the Search component initialisition code i have</p>
<p><b>        HtmlAjaxCommandButton button = ( HtmlAjaxCommandButton )context.getApplication().createComponent(   HtmlAjaxCommandButton.COMPONENT_TYPE );<br />
        button.setId( &#8220;searchButton&#8221; );<br />
        button.setValue( &#8220;Search&#8221; );<br />
        button.setOnclick( (String )getAttributes().get( &#8220;onSearchClick&#8221; ) ); //javascript to run when clicked<br />
        button.setOncomplete( (String )getAttributes().get( &#8220;onSearchComplete&#8221; ) ); //javascript to run after complete<br />
        button.setAction( app.createMethodBinding( &#8220;#{&#8221; + backingBean + &#8220;.submitSearch}&#8221;, null ) );</b></p>
<p>This button only works once&#8230;and I&#8217;m complete stumped.</p>
<p>Putting the &lt;a4j:commandButton&gt; as a hidden child of the &lt;gls:Search ..attrs../&gt; on a jsp/xhtml page and calling .click() using javascript works fine everytime.</p>
<p>Anyone have any idea why the a4j button isn&#8217;t submitting after subsequent keypresses when it is added programmatically ?</p>
<p>btw&#8230;it&#8217;s just about relevant to this blog entry as I&#8217;m trying to do the same thing from a rich:modalPanel with the same issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devon</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-12899</link>
		<dc:creator>Devon</dc:creator>
		<pubDate>Wed, 15 Oct 2008 14:55:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-12899</guid>
		<description>@Brunda:  The code got eaten by the comment system, sorry:(

Can you e-mail it to me?  devon@digitalsanctuary.com

@YSL:  can you send some code that isn't working?  I've never had issues where form values don't submit correctly from a modal panel.</description>
		<content:encoded><![CDATA[<p>@Brunda:  The code got eaten by the comment system, sorry:(</p>
<p>Can you e-mail it to me?  <a href="mailto:devon@digitalsanctuary.com">devon@digitalsanctuary.com</a></p>
<p>@YSL:  can you send some code that isn&#8217;t working?  I&#8217;ve never had issues where form values don&#8217;t submit correctly from a modal panel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brunda</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-12898</link>
		<dc:creator>Brunda</dc:creator>
		<pubDate>Wed, 15 Oct 2008 14:50:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-12898</guid>
		<description>Have the same kind of problems.

I am able to open the modal window, but want 2 close it on a4j:support oncomplete event.

For some reason it doesnt tend 2 wrk.
can u please help me.
here is the code.


                                      
                                        
                                            
                                        
                                        
                                            
                                        
                                    </description>
		<content:encoded><![CDATA[<p>Have the same kind of problems.</p>
<p>I am able to open the modal window, but want 2 close it on a4j:support oncomplete event.</p>
<p>For some reason it doesnt tend 2 wrk.<br />
can u please help me.<br />
here is the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ysl</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-12892</link>
		<dc:creator>ysl</dc:creator>
		<pubDate>Wed, 15 Oct 2008 12:31:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-12892</guid>
		<description>hi,
when i insert input text into modalpanel and get the the value in the input text to my bean property it always returns null,
any solutions? 
thanks</description>
		<content:encoded><![CDATA[<p>hi,<br />
when i insert input text into modalpanel and get the the value in the input text to my bean property it always returns null,<br />
any solutions?<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alan</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-11947</link>
		<dc:creator>alan</dc:creator>
		<pubDate>Mon, 22 Sep 2008 04:37:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-11947</guid>
		<description>Hello all,
I have a question regarding modalPanel et rerendering.
From a main page containing a richfaces dataOrderedList, a commandbutton opens up a richfaces:modalPanel containing a orderinglist(a subset of the parent collection). The desired behaviour is that a orderchange in the orderlinglist of the modalpanel updates the order of the elements in the parent page. 
Does richfaces allow that? Thanks for your help.
Here is my code :


    
.pic {
    margin-bottom: -4px;
    margin-right: 2px;
}

    
        
            
                
                    
                    
                        
                    
                
            
        
                        
        
	#{item.label}
         
        
            	       			
	
          	    
                  Sort selected users 	  
	   	  
	      					
	     
	     Currently Active Items
	    
	    
		Name
		#{items.label}
	     
	    
	   	uri (present)
		#{items.iconURI}
	    
	   	
	    	
                 

	
      	&lt;a href="#" rel="nofollow"&gt;  
	Close&lt;/a&gt; 
	Save   
                  	  			
	
           
             
    

</description>
		<content:encoded><![CDATA[<p>Hello all,<br />
I have a question regarding modalPanel et rerendering.<br />
From a main page containing a richfaces dataOrderedList, a commandbutton opens up a richfaces:modalPanel containing a orderinglist(a subset of the parent collection). The desired behaviour is that a orderchange in the orderlinglist of the modalpanel updates the order of the elements in the parent page.<br />
Does richfaces allow that? Thanks for your help.<br />
Here is my code :</p>
<p>.pic {<br />
    margin-bottom: -4px;<br />
    margin-right: 2px;<br />
}</p>
<p>	#{item.label}</p>
<p>                  Sort selected users 	  </p>
<p>	     Currently Active Items</p>
<p>		Name<br />
		#{items.label}</p>
<p>	   	uri (present)<br />
		#{items.iconURI}</p>
<p>      	<a href="#" rel="nofollow"><br />
	Close</a><br />
	Save</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Col</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-10338</link>
		<dc:creator>Col</dc:creator>
		<pubDate>Tue, 26 Aug 2008 03:00:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-10338</guid>
		<description>Here's hoping :-)</description>
		<content:encoded><![CDATA[<p>Here&#8217;s hoping <img src='http://www.digitalsanctuary.com/tech-blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devon</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-10336</link>
		<dc:creator>Devon</dc:creator>
		<pubDate>Tue, 26 Aug 2008 02:09:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-10336</guid>
		<description>@Col:  Honestly I've never used JSF without Seam, so I can't help you.  Perhaps another blog reader can?</description>
		<content:encoded><![CDATA[<p>@Col:  Honestly I&#8217;ve never used JSF without Seam, so I can&#8217;t help you.  Perhaps another blog reader can?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Col</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-10335</link>
		<dc:creator>Col</dc:creator>
		<pubDate>Tue, 26 Aug 2008 01:23:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-10335</guid>
		<description>I am a bit new to this and am trouble getting it working... the main reason the examples don't work for is that I am not using seam.

So the #{backingBean.setSelectedItem(item)} doesn't work for me. How do I go about getting this working without seam?

I have looked at the a4j:actionparam, but have not made this work properly.

Any help appreciated.
Regards
Col</description>
		<content:encoded><![CDATA[<p>I am a bit new to this and am trouble getting it working&#8230; the main reason the examples don&#8217;t work for is that I am not using seam.</p>
<p>So the #{backingBean.setSelectedItem(item)} doesn&#8217;t work for me. How do I go about getting this working without seam?</p>
<p>I have looked at the a4j:actionparam, but have not made this work properly.</p>
<p>Any help appreciated.<br />
Regards<br />
Col</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devon</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-8207</link>
		<dc:creator>Devon</dc:creator>
		<pubDate>Wed, 16 Jul 2008 15:59:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/java/jboss/seam/displaying-and-rerendering-a-richfaces-modalpanel-from-a-commandlink.html#comment-8207</guid>
		<description>Please e-mail it to me, wordpress keeps eating it.  

devon@digitalsanctuary.com</description>
		<content:encoded><![CDATA[<p>Please e-mail it to me, wordpress keeps eating it.  </p>
<p><a href="mailto:devon@digitalsanctuary.com">devon@digitalsanctuary.com</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
