Hi, Strangely enough I still cannot create a form that submits with a parameter WindowState.MAXIMIZED. This is easy enough by creating an actionURL and putting that in the action attribute of a normal HTML form tag, but I'm using an ActionForm to populate and validate my form. In order to do so you need to create your form and input tags with the struts HTML taglib (at least, that's my understanding!), e.g.:
<html:form action="/an/action"> <html:input property="someProp" /> </html:form> But now how do I get this form to submit to an action with WindowState.MAXIMIZED? Or is wanting this a mistake of thought on my side - does it go against a principal or best practice I should be respecting? I cannot imagine that I'm the first to have this problem. Of course I could extend the Struts taglib to support a windowstate attribute in a html:form tag, like IBM does for example... but that seems quite some overhead for such a simple need. I must be missing something... Can anybody explain?? Thanks, Evert -----Original Message----- From: Nils-Helge Garli Hegvik [mailto:nil...@gmail.com] Sent: dinsdag 16 december 2008 20:11 To: Struts Users Mailing List Subject: Re: html:form windowstate Are you using the struts 1 portlet bridge? (http://portals.apache.org/bridges/multiproject/portals-bridges-struts) Haven't used it myself, but I'd be surprised if the framework didn't support creating portlet urls. I have only used a WebSphere Portal-proprietary extension which (from what I remember) created portlet urls automatically. Nils-H On Tue, Dec 16, 2008 at 5:27 PM, Evert Lammerts <evert.lamme...@sara.nl> wrote: > Hi Nils, > > I've tried your suggestion but it doesn't seem to be possible. The action > attribute in html:form expects an Action URI, while actionURL creates an > absolute URL. Still, being a beginner with this, I'm pretty sure I'm missing > something - I guess it IS possible to create a form tag that submits to a > WindowState.MAXIMIZED state. > > Thanks, Evert Lammerts > > -----Original Message----- > From: Nils-Helge Garli Hegvik [mailto:nil...@gmail.com] > Sent: dinsdag 16 december 2008 13:07 > To: Struts Users Mailing List > Subject: Re: html:form windowstate > > You can probably use the 'var' attribute of the portlet:actionURL tag > to store the url as a variable which you can reference by an > expression in the html:form tag. Take a look at the tag reference for > the portlet tags (PLT.22.2) in the JSR168 spec [1] for details. > > Nils-H > > [1] - http://jcp.org/aboutJava/communityprocess/final/jsr168/index.html > > On Tue, Dec 16, 2008 at 12:47 PM, Evert Lammerts <evert.lamme...@sara.nl> > wrote: >> Hi all, >> >> Using struts 1.3.8 I'm trying to use the struts-html taglib to create a form >> attribute that submits the form to a maximized window state, like possible >> with the actionURL tag: >> >> <form action="<portlet:actionURL windowState="<%= >> WindowState.MAXIMIZED.toString() %>"> >> <portlet:param name="struts_action" value="/my/action" /> >> </portlet:actionURL>" >> method="POST"> >> >> Is there a way to do this? Maybe with a hidden form input? >> >> Thanks, >> Evert Lammerts >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org