shale 1.0.4 in glassfish v2 classpath breaks admin webapp

2007-10-01 Thread Cyril Bouteille


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Shale Dialog Manager Vs Trinidad Dialog Framework

2007-10-01 Thread sunilskulkarni

Thanks Rahul. Looked into examples you suggested and figured it out, it is
simple. Thanks


Rahul Akolkar wrote:
 
 On 9/30/07, sunilskulkarni [EMAIL PROTECTED] wrote:

 Thanks Rahul, I played with Trinidad all day yesterday with no luck.
 Shale is
 easier to set up and blends well with Faces, Tiles...etc. I have decided
 to
 use Shale for my Dialog framework needs but finding it difficult to find
 a
 basic example on how to use Dialog framework, where as Trinidad has good
 examples but hard to integrate. Rahul, appreciate if you can send me a
 sample example on how to use Shale Dialog framewrok. As suggested I
 couldn't
 build http://shale.apache.org/building.html due to lack of time. As
 application developer, I was hoping to use a document on how to use
 infrastructure and move on quickly with my core application. Thanks for
 your
 assistance.

 snip/
 
 As we discussed, these [1],[2],[3] documents are the starting point.
 If these are not enough, or if they lack enough details to be useful,
 then they need to be fixed. We will need your help in identifying what
 needs to be explained better.
 
 Also, if you are unable to build, you can pick up the pre-built
 shale-usecases app [4] (as a zip) and dig into the log on / edit
 profile dialog examples. Once you unpack the zip, the dialog
 descriptor is here:
   shale-usecases/src/main/webapp/WEB-INF/dialog-config.xml
 The beans are here:
   shale-usecases/src/main/java/org/apache/shale/usecases/profile
 The views are here:
   shale-usecases/src/main/webapp/profile
 
 Looking at the examples in conjunction with the documents on the
 website should help. If you have specific questions, please ask.
 
 -Rahul
 
 [1] http://shale.apache.org/shale-dialog/
 [2] http://shale.apache.org/shale-dialog-basic/
 [3] http://shale.apache.org/shale-dialog-scxml/
 [4] http://www.apache.org/dyn/closer.cgi/shale/  (choose a mirror and
 get shale-usecases-current.zip)
 
 
 

 Rahul Akolkar wrote:
 
  On 9/29/07, sunilskulkarni sunilskulkarni wrote:
 
  Hi, I am using MyFaces 1.1.4/tomcat 5.5.x. I want to use conversation
  pages.
  Shale and Triniad offers the feature. I am new to both. Requesting
  assistance.
  (1)Is there a document or a step by step instr on how to use Shale
 Dialog
  Manager(http://shale.apache.org/shale-dialog/index.html, talks about
  components)
  snip/
 
  That page introduces Shale dialogs, and the associated APIs (not sure
  what you mean by talking about components). Step by step instructions
  are partly a function of the dialog implementation in use, the links
  in the API and Implementations section for both available
  implementations contains such recipes.
 
  Working examples of the basic implementation are available in the
  shale-usecases sample application, you can download the latest release
  (v1.0.4) from here:
 
http://www.apache.org/dyn/closer.cgi/shale/
 
  More examples are in the shale-test-dialog-* applications that can be
  built from source:
 
http://shale.apache.org/building.html
 
  If you have specific questions or feedback, please let us know.
 
 
  (2) I have set up Trinidad on Eclipse/tomcat, trying it out. Any doc
  which
  points to a sample instr it will help.
  (3) Is Shale or Trinidad better? w.r.t feature set, usability, more
  components...etc
 
  snap/
 
  Sorry, I haven't looked at Trinidad. Please try the MyFaces user list.
 
  -Rahul
 
 
  Thanks
  --
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Shale-Dialog-Manager-Vs-Trinidad-Dialog-Framework-tf4540310.html#a12991654
Sent from the Shale - User mailing list archive at Nabble.com.



Cannot find transition dialog:xxx for state xxx of dialog xxx error

2007-10-01 Thread sunilskulkarni

Attachment :  http://www.nabble.com/file/p12991765/dialog-config.xml
dialog-config.xml 
Does any one know why I get the above error? I am new to Shale. Thanks
(I have 2 beans, one has gets firstname, lastname. Second one stores names
in Hashmap(signup) and login which checks the contents of Map. (1) I click
login link from home page, (2)it goes to login page, it has link to signup.
(3)I do signup. (4)Control comes back to login #1. (5) I try to do #1, I get
the above error.
-- 
View this message in context: 
http://www.nabble.com/Cannot-find-transition-dialog%3Axxx-for-state-xxx-of-dialog-xxx-error-tf4552512.html#a12991765
Sent from the Shale - User mailing list archive at Nabble.com.



Ajax Form Post, Shale Remoting and Glassfish

2007-10-01 Thread Brody Wong

I am using Aajx (Yahoo UI!'s asyncRequest) to post a form. 

YAHOO.util.Connect.setForm(moduleForm);
YAHOO.util.Connect.asyncRequest('POST',
'dynamic/a_backing_bean/save.jsf', ...

At backend, I am using Shale-Remoting to catch the result. I make the call 

public void save() {
//do sth
getFacesContext().responseComplete();
   
getFacesContext().getExternalContext().dispatch(/a_nested_view.jsf);
}

To return the result. At the browser, I use JavaScript to set the target's
DIV's innerHTML to be replaced by the HTML fragment returned.

It works perfectly using Tomcat 5.5 but when I switched to Glassfish. It
renders the whole page including the parent view. I would like Shale/GF just
return the nested view instead of the whole page.

I have tried to use remoting without a form post, only the target nested
view will be rendered in both Tomcat 5.5 and Glassfish.

I am also using Shale-Tiger and Shale-Spring. All shale related classes are
at version 1.0.4. I am using myfaces-1.1.5

Anybody has any ideas what I have to do to solve this problem?

Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Ajax-Form-Post%2C-Shale-Remoting-and-Glassfish-tf4552874.html#a12992749
Sent from the Shale - User mailing list archive at Nabble.com.