stephan opitz | 1 Aug 19:31 2006
Picon

dialog manager problems / questions

two questions...

first:

i use tiles... i have a static left and side - middle is dynamic (with
actions &&&)
if i enter the dialog manager, i thought ok, cool i cann swap between dialogs...

if i use a link from the static sides, i got fault because the
transition are not defined in dialog manager... i dont want to define
it again...

does exist a possibility that if i'm in a dialog and a non defined
transaction is called, that the dialog automatically ends?

  <!-- Edit Profile Dialog -->
  <dialog                name="buyProcedure"
                        start="Setup">

    <!-- Global transitioh definitions -->
    <transition       outcome="cancel"
                       target="Cancel"/>
    <transition       outcome="finish"
                       target="Finish"/>

    <action              name="Setup"
                       method="#{buy.prepareBuy1}">
      <transition     outcome="success"
                       target="Page 1"/>
    </action>
(Continue reading)

Viswanath Ramineni | 2 Aug 14:22 2006
Picon

Javascript integration - on ActionListner event


I have this requirement, when I press the "save" button, I need to validate
the form and only if the validation is successful I need to submit (fire the
backing bean method associated with the ActionListner). How do I integrate
my onclick javascript with the one generated by the framework?
--

-- 
View this message in context: http://www.nabble.com/Javascript-integration---on-ActionListner-event-tf2039511.html#a5612702
Sent from the Shale - User forum at Nabble.com.

René Zanner | 2 Aug 15:00 2006

Re: Javascript integration - on ActionListner event

Hi,

for commandButton there is no "onclick" generated by the framework - so it's free for you to use :o). 

You can set an "onclick" event handler to your commandButton component calling your JavaScript function.
When this method returns "false", the submit of the button is not executed.

Cheers,

René

----- Original Message -----
From: Viswanath Ramineni
[mailto:vramineni <at> yahoo.com]
To: user <at> shale.apache.org
Sent: Wed, 02 Aug
2006 14:22:24 +0200
Subject: Javascript integration - on ActionListner
event

> 
> I have this requirement, when I press the "save" button, I need to validate
> the form and only if the validation is successful I need to submit (fire the
> backing bean method associated with the ActionListner). How do I integrate
> my onclick javascript with the one generated by the framework?
> -- 
> View this message in context:
> http://www.nabble.com/Javascript-integration---on-ActionListner-event-tf2039511.html#a5612702
> Sent from the Shale - User forum at Nabble.com.
> 
(Continue reading)

Viswanath Ramineni | 2 Aug 17:04 2006
Picon

Re: Javascript integration - on ActionListner event


Hi René,

Framework does seem to generate a javascript for commandButton. Following is
the extract from the view source. See the "clear_frm124()". That is not my
code..

<input id="frm124:commandPanel:_idsc22" name="frm124:commandPanel:_idsc22"
type="submit" value="Save" onclick="javascript:return
validateForm();clear_frm124();" onmouseover="javascript: if
(this.disabled==0) this.className='Btn1Hov'" onmouseout="javascript: if
(this.disabled==0) this.className='Btn1'" class="Btn1" onfocus="javascript:
if (this.disabled==0) this.className='Btn1Hov'" onblur="javascript: if
(this.disabled==0) this.className='Btn1'" />

extract from clay-config.xml

    <component jsfid="saveBtn" extends="baseCommand"> 
	   <attributes>
	      <set name="value" value="#{labels['save']}" />		
		  <set name="actionListener" value="#{ <at> managed-bean-name.onSave}"  />
		  <set name="binding" value="#{ <at> managed-bean-name.saveBtn}" />
		  <set name="disabled" value="#{ <at> managed-bean-name.userPrivs &lt; 2}" />
  		  <set name="onclick" value="javascript:return validateForm()" />	  
	   </attributes>
    </component>

(Don't bother about userPrivs.. it's related to my logic)

Thanks
(Continue reading)

Mike Kienenberger | 3 Aug 01:38 2006
Picon

Re: Servlet 2.3 / JSP 1.2 support

On 7/21/06, Craig McClanahan <craigmcc <at> apache.org> wrote:
> principally to allow us to use a ServletRequestListener and a
> ServletRequestAttributesListener to deal with the per-request lifecycle event callbacks,
> plus the ability to impose filters on a RequestDispatcher.forward() call if you want them.
>
>>   Any suggestion on making latest nightly workable with servlet 2.3 / JSP
> > 1.2 platforms?
>
> It *might* be technically feasible to mimic some of the functionality using
> a filter in a 2.3 environment, but it is not technically possible to support
> everything.  Therefore, this combination (Shale and Servlet 2.3) is not
> going to be supported.

For what it's worth, Greg Wilson of jetty considered
ServletRequestListener and ServletRequestAttributesListener  "too
objectionable to include in the core of Jetty" and wrote a filter to
support them.

http://www.mortbay.org/javadoc/org/mortbay/jetty/servlet/JSR154Filter.html

Not sure about the "impose filters on a RequestDispatcher.forward()
call" part, though.

Craig McClanahan | 3 Aug 07:09 2006
Picon

Re: Servlet 2.3 / JSP 1.2 support

On 8/2/06, Mike Kienenberger <mkienenb <at> gmail.com> wrote:
>
> On 7/21/06, Craig McClanahan <craigmcc <at> apache.org> wrote:
> > principally to allow us to use a ServletRequestListener and a
> > ServletRequestAttributesListener to deal with the per-request lifecycle
> event callbacks,
> > plus the ability to impose filters on a RequestDispatcher.forward() call
> if you want them.
> >
> >>   Any suggestion on making latest nightly workable with servlet 2.3 /
> JSP
> > > 1.2 platforms?
> >
> > It *might* be technically feasible to mimic some of the functionality
> using
> > a filter in a 2.3 environment, but it is not technically possible to
> support
> > everything.  Therefore, this combination (Shale and Servlet 2.3) is not
> > going to be supported.
>
> For what it's worth, Greg Wilson of jetty considered
> ServletRequestListener and ServletRequestAttributesListener  "too
> objectionable to include in the core of Jetty" and wrote a filter to
> support them.
>
> http://www.mortbay.org/javadoc/org/mortbay/jetty/servlet/JSR154Filter.html
>
> Not sure about the "impose filters on a RequestDispatcher.forward()
> call" part, though.
>
(Continue reading)

Mike Kienenberger | 3 Aug 13:56 2006
Picon

Re: Servlet 2.3 / JSP 1.2 support

I'm not an expert on this, but I think it's a configuration option to
automatically enable this behavior for Jetty 5 due to the performance
hit.    It may be that in Jetty 6 that it's turned on by default.

My point was that Mahbub might be able to download and install this
filter into his 2.3 environment and be able to use Shale, although he
might have to configure his app differently.

On 8/3/06, Craig McClanahan <craigmcc <at> apache.org> wrote:
> On 8/2/06, Mike Kienenberger <mkienenb <at> gmail.com> wrote:
> >
> > On 7/21/06, Craig McClanahan <craigmcc <at> apache.org> wrote:
> > > principally to allow us to use a ServletRequestListener and a
> > > ServletRequestAttributesListener to deal with the per-request lifecycle
> > event callbacks,
> > > plus the ability to impose filters on a RequestDispatcher.forward() call
> > if you want them.
> > >
> > >>   Any suggestion on making latest nightly workable with servlet 2.3 /
> > JSP
> > > > 1.2 platforms?
> > >
> > > It *might* be technically feasible to mimic some of the functionality
> > using
> > > a filter in a 2.3 environment, but it is not technically possible to
> > support
> > > everything.  Therefore, this combination (Shale and Servlet 2.3) is not
> > > going to be supported.
> >
> > For what it's worth, Greg Wilson of jetty considered
(Continue reading)

Viswanath Ramineni | 3 Aug 18:35 2006
Picon

Re: Javascript integration - on ActionListner event


I am stuck with this. I could use "onmousedown" to validate but then if the
user presses "enter" while the focus is on this button, mousedown event will
not be fired. 

I really need help on this.  BTW, baseCommand extends commandButton.

Thanks
--

-- 
View this message in context: http://www.nabble.com/Javascript-integration---on-ActionListner-event-tf2039511.html#a5635979
Sent from the Shale - User forum at Nabble.com.

James Mitchell | 4 Aug 14:34 2006
Picon

Re: MODERATE for user <at> shale.apache.org

Please subscribe to the mailing list to post.

   http://shale.apache.org/mail-lists.html

As for the logo contest, please add your entries to the wiki.

   http://wiki.apache.org/shale/LogoContest

--
James Mitchell
678.910.8017

On Aug 4, 2006, at 4:35 AM, user- 
reject-1154680551.40601.pnolpknjgeiapmgjafij <at> shale.apache.org wrote:

> To approve:
>    user-accept-1154680551.40601.pnolpknjgeiapmgjafij <at> shale.apache.org
> To reject:
>    user-reject-1154680551.40601.pnolpknjgeiapmgjafij <at> shale.apache.org
> To give a reason to reject:
> %%% Start comment
> %%% End comment
>
> From: "Min Wang" <ayasoft <at> gmail.com>
> Date: August 4, 2006 4:35:28 AM EDT
> To: user <at> shale.apache.org
> Subject: shale logo
>
>
> name: Min.Wang
(Continue reading)

Shine K | 4 Aug 17:06 2006

Re: MODERATE for user <at> shale.apache.org


 I can't understand how to upload my apache logo....
 Please give me necessory details.....
 I have already subscribed the mailing list.....
 PLEASE HELP ME 

----- Original Message ----- 
From: "James Mitchell" <jmitchell <at> apache.org>
To: <ayasoft <at> gmail.com>
Cc: <user <at> shale.apache.org>
Sent: Friday, August 04, 2006 5:34 AM
Subject: Re: MODERATE for user <at> shale.apache.org

> Please subscribe to the mailing list to post.
> 
>   http://shale.apache.org/mail-lists.html
> 
> As for the logo contest, please add your entries to the wiki.
> 
>   http://wiki.apache.org/shale/LogoContest
> 
> 
> --
> James Mitchell
> 678.910.8017
> 
> 
> 
> 
> On Aug 4, 2006, at 4:35 AM, user- 
(Continue reading)


Gmane