You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shale.apache.org by "payne (JIRA)" <ji...@apache.org> on 2008/09/25 03:20:25 UTC

[jira] Commented: (SHALE-220) init() lifecycle method called twice

    [ https://issues.apache.org/struts/browse/SHALE-220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44750#action_44750 ] 

payne commented on SHALE-220:
-----------------------------

http://www.tamilstar.info/forums/index.php?showtopic=158648
http://www.tamilstar.info/forums/index.php?showtopic=158646
http://www.tamilstar.info/forums/index.php?showtopic=158643
http://www.tamilstar.info/forums/index.php?showtopic=158640
http://www.tamilstar.info/forums/index.php?showtopic=158638
http://www.tamilstar.info/forums/index.php?showtopic=158636
http://www.tamilstar.info/forums/index.php?showtopic=158632
http://www.tamilstar.info/forums/index.php?showtopic=158631
http://www.tamilstar.info/forums/index.php?showtopic=158628
http://www.tamilstar.info/forums/index.php?showtopic=158625
http://www.tamilstar.info/forums/index.php?showtopic=158621
http://www.tamilstar.info/forums/index.php?showtopic=158619
http://www.tamilstar.info/forums/index.php?showtopic=158616
http://www.tamilstar.info/forums/index.php?showtopic=158613
http://www.tamilstar.info/forums/index.php?showtopic=158612
http://www.tamilstar.info/forums/index.php?showtopic=158608
http://www.tamilstar.info/forums/index.php?showtopic=158607
http://www.tamilstar.info/forums/index.php?showtopic=158604
http://www.tamilstar.info/forums/index.php?showtopic=158601
http://www.tamilstar.info/forums/index.php?showtopic=158598
http://www.tamilstar.info/forums/index.php?showtopic=158595
http://www.tamilstar.info/forums/index.php?showtopic=158592
http://www.tamilstar.info/forums/index.php?showtopic=158590
http://www.tamilstar.info/forums/index.php?showtopic=158588
http://www.tamilstar.info/forums/index.php?showtopic=158584
http://www.tamilstar.info/forums/index.php?showtopic=158580
http://www.tamilstar.info/forums/index.php?showtopic=158575
http://www.tamilstar.info/forums/index.php?showtopic=158573
http://www.tamilstar.info/forums/index.php?showtopic=158570
http://www.tamilstar.info/forums/index.php?showtopic=158430
http://www.tamilstar.info/forums/index.php?showtopic=158426
http://www.tamilstar.info/forums/index.php?showtopic=158422
http://www.tamilstar.info/forums/index.php?showtopic=158419
http://www.tamilstar.info/forums/index.php?showtopic=158415
http://www.tamilstar.info/forums/index.php?showtopic=158412
http://www.tamilstar.info/forums/index.php?showtopic=158407
http://www.tamilstar.info/forums/index.php?showtopic=158405
http://www.tamilstar.info/forums/index.php?showtopic=158405
http://www.tamilstar.info/forums/index.php?showtopic=158402
http://www.tamilstar.info/forums/index.php?showtopic=158399
http://www.tamilstar.info/forums/index.php?showtopic=158397
http://www.tamilstar.info/forums/index.php?showtopic=158394
http://www.tamilstar.info/forums/index.php?showtopic=158391
http://www.tamilstar.info/forums/index.php?showtopic=158390
http://www.tamilstar.info/forums/index.php?showtopic=158386
http://www.tamilstar.info/forums/index.php?showtopic=158382
http://www.tamilstar.info/forums/index.php?showtopic=158378
http://www.tamilstar.info/forums/index.php?showtopic=158367
http://www.tamilstar.info/forums/index.php?showtopic=158356
http://www.tamilstar.info/forums/index.php?showtopic=158348
http://www.tamilstar.info/forums/index.php?showtopic=158330
http://www.tamilstar.info/forums/index.php?showtopic=158303
http://www.tamilstar.info/forums/index.php?showtopic=158289
http://www.tamilstar.info/forums/index.php?showtopic=158273
http://www.tamilstar.info/forums/index.php?showtopic=158210
http://www.tamilstar.info/forums/index.php?showtopic=157908
http://www.tamilstar.info/forums/index.php?showtopic=157905
http://www.tamilstar.info/forums/index.php?showtopic=157903
http://www.tamilstar.info/forums/index.php?showtopic=157902
http://www.tamilstar.info/forums/index.php?showtopic=157899
http://www.tamilstar.info/forums/index.php?showtopic=157896
http://www.tamilstar.info/forums/index.php?showtopic=157894
http://www.tamilstar.info/forums/index.php?showtopic=157889
http://www.tamilstar.info/forums/index.php?showtopic=157886
http://www.tamilstar.info/forums/index.php?showtopic=157883
http://www.tamilstar.info/forums/index.php?showtopic=157881
http://www.tamilstar.info/forums/index.php?showtopic=157878
http://www.tamilstar.info/forums/index.php?showtopic=157875
http://www.tamilstar.info/forums/index.php?showtopic=157872
http://www.tamilstar.info/forums/index.php?showtopic=157871
http://www.tamilstar.info/forums/index.php?showtopic=157868
http://www.tamilstar.info/forums/index.php?showtopic=157864
http://www.tamilstar.info/forums/index.php?showtopic=157863
http://www.tamilstar.info/forums/index.php?showtopic=157859
http://www.tamilstar.info/forums/index.php?showtopic=157710
http://www.tamilstar.info/forums/index.php?showtopic=157708
http://www.tamilstar.info/forums/index.php?showtopic=157683
http://www.tamilstar.info/forums/index.php?showtopic=157680
http://www.tamilstar.info/forums/index.php?showtopic=157673
http://www.tamilstar.info/forums/index.php?showtopic=157671
http://www.tamilstar.info/forums/index.php?showtopic=157668
http://www.tamilstar.info/forums/index.php?showtopic=157660
http://www.tamilstar.info/forums/index.php?showtopic=157643
http://www.tamilstar.info/forums/index.php?showtopic=157628
http://www.tamilstar.info/forums/index.php?showtopic=157616
http://www.tamilstar.info/forums/index.php?showtopic=157601
http://www.tamilstar.info/forums/index.php?showtopic=157569
http://www.tamilstar.info/forums/index.php?showtopic=157546
http://www.tamilstar.info/forums/index.php?showtopic=157540
http://www.tamilstar.info/forums/index.php?showtopic=157531
http://www.tamilstar.info/forums/index.php?showtopic=157490
http://www.tamilstar.info/forums/index.php?showtopic=157079
http://www.tamilstar.info/forums/index.php?showtopic=157076
http://www.tamilstar.info/forums/index.php?showtopic=157073
http://www.tamilstar.info/forums/index.php?showtopic=157069
http://www.tamilstar.info/forums/index.php?showtopic=157065
http://www.tamilstar.info/forums/index.php?showtopic=157063
http://www.tamilstar.info/forums/index.php?showtopic=157063
http://www.tamilstar.info/forums/index.php?showtopic=157059
http://www.tamilstar.info/forums/index.php?showtopic=157056

> init() lifecycle method called twice
> ------------------------------------
>
>                 Key: SHALE-220
>                 URL: https://issues.apache.org/struts/browse/SHALE-220
>             Project: Shale
>          Issue Type: Bug
>          Components: View
>    Affects Versions: 1.0.2, 1.0.3
>            Reporter: Craig McClanahan
>            Assignee: Craig McClanahan
>             Fix For: 1.0.4
>
>
> From a user mailing list posting by Viswanath <v_ramineni AT hotmail.com>, following up on earlier mailing list conversations:
> ==========
> Hi Craig,
> Now that I have subscribed to Shale user group, I am posting this issue again.
> Just to make sure that I am not using older version of Shale libraries, I have downloaded shale-framework-20060713.zip and tried, same problem. This is what I did,  to reproduce the issue in usecases project. ( I am not able to post code from my project because of lot of dependencies on EJBs/Database)
> I downloaded the latest usecases zip (07/14/2006). Unzipped the war file into a directory, created a project in eclipse, added the java source files,  built and deployed it into JBOSS and it ran fine.  Added the following code at the end of  org/apache/shale/usecases/locale/Select.java overriding the "do-nothing" init() from ActionViewController.
>    public void init()
>    {
>         System.out.println("Select.java - Init - PostBack Value: " + Boolean.toString(isPostBack()));
>    }
> redeployed and ran. The console output when I click on "Select Language" link
> 15:20:27,515 INFO  [STDOUT] Select.java - Init - PostBack Value: false
> 15:20:27,515 INFO  [STDOUT] Select.java - Init - PostBack Value: false
> and on sumbit (when I click on "Go" )
> 15:20:33,546 INFO  [STDOUT] Select.java - Init - PostBack Value: false
> 15:20:33,562 INFO  [STDOUT] Select.java - Init - PostBack Value: true
> My environment is :
> OS : Windows XP Home
> JBOSS 4.0.4 Patch1 with Tomcat 5.5
> JRE : 1.5.0_06
> Eclipse 3.1.1
> Thanks
> Vish
> ==========
> I was able to reproduce this with latest trunk bits, using the default testing configuration (MyFaces, Tomcat 5.5).  It's clearly a bug in how init and destroy method callbacks are being triggered for view controllers, most likely related to the fact that the mechanism for this was recently changed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.