You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andrea Chiumenti <ki...@gmail.com> on 2007/04/17 13:19:55 UTC
Help with jsessionid
Hello, it's happening something very strange with my demo app. in T4.1.2.
I've defined the a border component that contains a call to @Shell like:
<component id="shell" type="Shell">
<binding name="title" value="ognl:title"/>
<binding name="delegate" value="new
org.apache.tapestry.components.BlockRenderer(components.remainingHead)"/>
<binding name="renderBaseTag" value="ognl:false" />
<binding name="consoleEnabled" value="ognl:true" />
<binding name="browserLogLevel" value="literal:ERROR"/>
<binding name="tapestrySource" value="asset:coreJs"/>
<binding name="dojoSource" value="asset:dojoSource"/>
<binding name="dojoPath" value="asset:dojoPath"/>
</component>
<asset name="coreJs" path="/js/core.js"/>
<asset name="dojoSource" path="/js/dojo/dojo.js"/>
<asset name="dojoPath" path="/js/dojo/"/>
the strange thing is that for a page it perfectly work
but for another that seems identical (maybe I'm wrong) thigs are rendered
like here:
<script type="text/javascript">djConfig =
{"isDebug":true,"debugContainerId":"debug","baseRelativePath":"/js/dojo/;jsessionid=14BA82F304BF5E5C9C1F84CB52E211A3","preventBackButtonFix":false,"parseWidgets":false,"locale":"en-us"}
</script>
<script type="text/javascript"
src="/js/dojo/dojo.js;jsessionid=14BA82F304BF5E5C9C1F84CB52E211A3"></script>
<script type="text/javascript">
dojo.registerModulePath("tapestry", "/asset.svc?path=%2Ftapestry%2F");
</script>
<script type="text/javascript"
src="/js/core.js;jsessionid=14BA82F304BF5E5C9C1F84CB52E211A3"></script>
The attach of jsessionid breaks the page, and I even don't know why it is
appended.
I'm staled please help.
Thx,
kiuma
Re: Help with jsessionid
Posted by Andrea Chiumenti <ki...@gmail.com>.
they are executed as provided, so in the default way with no modification,
the problem is with tomcat5 and jetty6, but I think that it's with all
other containers.
What really mess up things is providing dojoSource via asset, because
";jsessionid=...." is attached, and that dojo gives back a lot of 404.
Shure there is a workaround on this providing a custom delegate, but it
seems to me that providing a dojoSource the way I have described so far
doesn't work.
What do you think ?
On 4/17/07, Martino Piccinato <ma...@gmail.com> wrote:
>
> the first time you hit a page url rewriting is enabled because the servlet
> container has no way to tell whether you support cookies or not (you don't
> send any cookie header as you still don't have a cookie). See my other
> reply
> about what could be the real problem (not url rewriting but a web server
> that does not know how to interpret rewritten url).
>
> Which servelet container/web server are you using? how are they
> configured?
>
Re: Help with jsessionid
Posted by Martino Piccinato <ma...@gmail.com>.
the first time you hit a page url rewriting is enabled because the servlet
container has no way to tell whether you support cookies or not (you don't
send any cookie header as you still don't have a cookie). See my other reply
about what could be the real problem (not url rewriting but a web server
that does not know how to interpret rewritten url).
Which servelet container/web server are you using? how are they configured?
Re: Help with jsessionid
Posted by Andrea Chiumenti <ki...@gmail.com>.
I've just developed another component that I will commit to JFly this
evening. It measures the rendering time (RenderTimeTracker) of a page.
So I could verify that the rendering time is the same. The before attribute
seems not to enhance performances
On 4/18/07, Andrea Chiumenti <ki...@gmail.com> wrote:
>
> Thanks Andreas,
> it works!, but could you tell me why
> <filter
> before="tapestry.request.SetupRequestEncoding"
> name="disableUrlSessionFilter"
> object="service: jfly.webcommons.disableUrlSessionFilter"/>
>
> is faster then the same filter without before ?
>
> At least it seems to me!
>
> On 4/18/07, Andreas Andreou <an...@di.uoa.gr> wrote:
> >
> > For this, better use
> > http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/services/ServletRequestServicerFilter.html
> >
> >
> >
> > On 4/18/07, Andrea Chiumenti <ki...@gmail.com> wrote:
> > >
> > > As suggested by Andreas I've added this filter (
> > > http://randomcoder.com/articles/jsessionid-considered-harmful) to the
> > demo
> > > app, and now it's working.
> > >
> > > So I've decided to implement this solution in a more Tapestry fashion
> > and
> > > wrote the following class:
> > >
> > >
> > -----------------------------------------------------------------------------------------------------------
> > >
> > > public class DisableUrlSessionFilter implements
> > WebRequestServicerFilter{
> > > private HttpServletResponse response;
> > > private HttpServletRequest request;
> > >
> > > public void service(WebRequest webRequest, WebResponse
> > webResponse,
> > > WebRequestServicer webRequestServicer) throws IOException {
> > > HttpServletResponseWrapper wrappedResponse = new
> > > HttpServletResponseWrapper(response) {
> > >
> > > public String encodeRedirectUrl(String url) {
> > > return url;
> > > }
> > > public String encodeRedirectURL(String url) {
> > > return url;
> > > }
> > > public String encodeUrl(String url) {
> > > return url;
> > > }
> > > public String encodeURL(String url) {
> > > return url;
> > > }
> > > };
> > >
> > > ServletWebResponse newResponse = new
> > > ServletWebResponse(wrappedResponse);
> > > webRequestServicer.service (webRequest, newResponse);
> > > }
> > >
> > > public HttpServletRequest getRequest() {
> > > return request;
> > > }
> > >
> > > public void setRequest(HttpServletRequest request) {
> > > this.request = request;
> > > }
> > >
> > > public HttpServletResponse getResponse() {
> > > return response;
> > > }
> > >
> > > public void setResponse(HttpServletResponse response) {
> > > this.response = response;
> > > }
> > > }
> > >
> > > -----------------------------------------------------------------
> > > Then I added to hive module the following lines:
> > > <contribution configuration-id="
> > > tapestry.request.WebRequestServicerPipeline
> > > ">
> > > <filter name="disableUrlSessionFilter" object="service:
> > > jfly.webcommons.disableUrlSessionFilter"/>
> > > </contribution>
> > >
> > > The problem is that it doesn't work as the filter because the
> > jsessionid
> > > problem remains, so the HttpServletResponseWrapper encodeURL is never
> > > called.
> > >
> > > Why my WebRequestServicerFilter doesn't work ?
> > >
> >
> >
> >
> > --
> > Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> > Tapestry / Tacos developer
> > Open Source / JEE Consulting
> >
>
>
Re: Help with jsessionid
Posted by Andrea Chiumenti <ki...@gmail.com>.
Thanks Andreas,
it works!, but could you tell me why
<filter
before="tapestry.request.SetupRequestEncoding"
name="disableUrlSessionFilter"
object="service:jfly.webcommons.disableUrlSessionFilter"/>
is faster then the same filter without before ?
At least it seems to me!
On 4/18/07, Andreas Andreou <an...@di.uoa.gr> wrote:
>
> For this, better use
>
> http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/services/ServletRequestServicerFilter.html
>
>
> On 4/18/07, Andrea Chiumenti <ki...@gmail.com> wrote:
> >
> > As suggested by Andreas I've added this filter (
> > http://randomcoder.com/articles/jsessionid-considered-harmful) to the
> demo
> > app, and now it's working.
> >
> > So I've decided to implement this solution in a more Tapestry fashion
> and
> > wrote the following class:
> >
> >
> -----------------------------------------------------------------------------------------------------------
> >
> > public class DisableUrlSessionFilter implements
> WebRequestServicerFilter{
> > private HttpServletResponse response;
> > private HttpServletRequest request;
> >
> > public void service(WebRequest webRequest, WebResponse webResponse,
> > WebRequestServicer webRequestServicer) throws IOException {
> > HttpServletResponseWrapper wrappedResponse = new
> > HttpServletResponseWrapper(response) {
> >
> > public String encodeRedirectUrl(String url) {
> > return url;
> > }
> > public String encodeRedirectURL(String url) {
> > return url;
> > }
> > public String encodeUrl(String url) {
> > return url;
> > }
> > public String encodeURL(String url) {
> > return url;
> > }
> > };
> >
> > ServletWebResponse newResponse = new
> > ServletWebResponse(wrappedResponse);
> > webRequestServicer.service(webRequest, newResponse);
> > }
> >
> > public HttpServletRequest getRequest() {
> > return request;
> > }
> >
> > public void setRequest(HttpServletRequest request) {
> > this.request = request;
> > }
> >
> > public HttpServletResponse getResponse() {
> > return response;
> > }
> >
> > public void setResponse(HttpServletResponse response) {
> > this.response = response;
> > }
> > }
> >
> > -----------------------------------------------------------------
> > Then I added to hive module the following lines:
> > <contribution configuration-id="
> > tapestry.request.WebRequestServicerPipeline
> > ">
> > <filter name="disableUrlSessionFilter" object="service:
> > jfly.webcommons.disableUrlSessionFilter"/>
> > </contribution>
> >
> > The problem is that it doesn't work as the filter because the jsessionid
> > problem remains, so the HttpServletResponseWrapper encodeURL is never
> > called.
> >
> > Why my WebRequestServicerFilter doesn't work ?
> >
>
>
>
> --
> Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
>
Re: Help with jsessionid
Posted by Andreas Andreou <an...@di.uoa.gr>.
For this, better use
http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/services/ServletRequestServicerFilter.html
On 4/18/07, Andrea Chiumenti <ki...@gmail.com> wrote:
>
> As suggested by Andreas I've added this filter (
> http://randomcoder.com/articles/jsessionid-considered-harmful) to the demo
> app, and now it's working.
>
> So I've decided to implement this solution in a more Tapestry fashion and
> wrote the following class:
>
> -----------------------------------------------------------------------------------------------------------
>
> public class DisableUrlSessionFilter implements WebRequestServicerFilter{
> private HttpServletResponse response;
> private HttpServletRequest request;
>
> public void service(WebRequest webRequest, WebResponse webResponse,
> WebRequestServicer webRequestServicer) throws IOException {
> HttpServletResponseWrapper wrappedResponse = new
> HttpServletResponseWrapper(response) {
>
> public String encodeRedirectUrl(String url) {
> return url;
> }
> public String encodeRedirectURL(String url) {
> return url;
> }
> public String encodeUrl(String url) {
> return url;
> }
> public String encodeURL(String url) {
> return url;
> }
> };
>
> ServletWebResponse newResponse = new
> ServletWebResponse(wrappedResponse);
> webRequestServicer.service(webRequest, newResponse);
> }
>
> public HttpServletRequest getRequest() {
> return request;
> }
>
> public void setRequest(HttpServletRequest request) {
> this.request = request;
> }
>
> public HttpServletResponse getResponse() {
> return response;
> }
>
> public void setResponse(HttpServletResponse response) {
> this.response = response;
> }
> }
>
> -----------------------------------------------------------------
> Then I added to hive module the following lines:
> <contribution configuration-id="
> tapestry.request.WebRequestServicerPipeline
> ">
> <filter name="disableUrlSessionFilter" object="service:
> jfly.webcommons.disableUrlSessionFilter"/>
> </contribution>
>
> The problem is that it doesn't work as the filter because the jsessionid
> problem remains, so the HttpServletResponseWrapper encodeURL is never
> called.
>
> Why my WebRequestServicerFilter doesn't work ?
>
--
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
Re: Help with jsessionid
Posted by Andrea Chiumenti <ki...@gmail.com>.
As suggested by Andreas I've added this filter (
http://randomcoder.com/articles/jsessionid-considered-harmful) to the demo
app, and now it's working.
So I've decided to implement this solution in a more Tapestry fashion and
wrote the following class:
-----------------------------------------------------------------------------------------------------------
public class DisableUrlSessionFilter implements WebRequestServicerFilter{
private HttpServletResponse response;
private HttpServletRequest request;
public void service(WebRequest webRequest, WebResponse webResponse,
WebRequestServicer webRequestServicer) throws IOException {
HttpServletResponseWrapper wrappedResponse = new
HttpServletResponseWrapper(response) {
public String encodeRedirectUrl(String url) {
return url;
}
public String encodeRedirectURL(String url) {
return url;
}
public String encodeUrl(String url) {
return url;
}
public String encodeURL(String url) {
return url;
}
};
ServletWebResponse newResponse = new
ServletWebResponse(wrappedResponse);
webRequestServicer.service(webRequest, newResponse);
}
public HttpServletRequest getRequest() {
return request;
}
public void setRequest(HttpServletRequest request) {
this.request = request;
}
public HttpServletResponse getResponse() {
return response;
}
public void setResponse(HttpServletResponse response) {
this.response = response;
}
}
-----------------------------------------------------------------
Then I added to hive module the following lines:
<contribution configuration-id="tapestry.request.WebRequestServicerPipeline
">
<filter name="disableUrlSessionFilter" object="service:
jfly.webcommons.disableUrlSessionFilter"/>
</contribution>
The problem is that it doesn't work as the filter because the jsessionid
problem remains, so the HttpServletResponseWrapper encodeURL is never
called.
Why my WebRequestServicerFilter doesn't work ?
Re: Tapestry RTE Component
Posted by Andreas Andreou <an...@di.uoa.gr>.
BTW, This has been on tacos for 2 months now
http://svn.sourceforge.net/viewvc/tacos/tacos-4.1/trunk/tacos-core/src/java/net/sf/tacos/components/dojo/form/
and
http://tacos.sourceforge.net/tacos4.1/tacos-core/quick-start/downloading.html
On 4/18/07, Steve Shucker <ss...@vmsinfo.com> wrote:
>
> My company needs one too. We wrapped the dojo Editor2 component. I
> helped someone get a quick demo of this working a few weeks ago, but I
> don't know if it's 100%. If you're using version 4.1.1, you're welcome
> to use this.
>
> -Steve
>
> DojoEditor.java:
>
> import java.util.HashMap;
> import java.util.Map;
>
> import org.apache.tapestry.form.AbstractFormComponent;
> import org.apache.tapestry.IMarkupWriter;
> import org.apache.tapestry.IRequestCycle;
> import org.apache.tapestry.IScript;
> import org.apache.tapestry.PageRenderSupport;
> import org.apache.tapestry.TapestryUtils;
> import org.apache.tapestry.annotations.ComponentClass;
> import org.apache.tapestry.annotations.InjectScript;
> import org.apache.tapestry.annotations.Parameter;
>
> @ComponentClass(allowBody=true)
> public abstract class DojoEditor extends AbstractFormComponent {
>
> @Parameter(required=true)
> public abstract String getValue();
> public abstract void setValue(String value) ;
>
> @InjectScript("DojoEditor.script")
> public abstract IScript getScript();
>
> /**
> * @see
> org.apache.tapestry.form.AbstractFormComponent#renderFormComponent(
> org.apache.tapestry.IMarkupWriter,
> * org.apache.tapestry.IRequestCycle)
> */
> protected void renderFormComponent(IMarkupWriter writer,
> IRequestCycle cycle) {
> PageRenderSupport pageRenderSupport =
> TapestryUtils.getPageRenderSupport(cycle, this);
>
> Map<String,Object> symbols = new HashMap<String,Object>();
> symbols.put("id", getClientId());
> symbols.put("formId", getForm().getClientId());
> getScript().execute(this, cycle, pageRenderSupport, symbols);
>
> renderDelegatePrefix(writer, cycle);
>
> writer.begin("textArea");
> writer.attribute("style","width:700px; height:200px");
> renderIdAttribute(writer, cycle);
> writer.attribute("name", getName());
> renderInformalParameters(writer, cycle);
> renderBody(writer, cycle);
> writer.printRaw(getValue());
> writer.end();
> renderDelegateSuffix(writer, cycle);
> }
>
> /**
> * @see
> org.apache.tapestry.form.AbstractFormComponent#rewindFormComponent(
> org.apache.tapestry.IMarkupWriter,
> * org.apache.tapestry.IRequestCycle)
> */
> protected void rewindFormComponent(IMarkupWriter writer,
> IRequestCycle cycle) {
> setValue(cycle.getParameter(getName()));
> }
>
> }
>
> DojoEditor.script:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!DOCTYPE script PUBLIC
> "-//Apache Software Foundation//Tapestry Script Specification 3.0//EN"
> "http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd">
>
> <script>
> <input-symbol key="id" class="java.lang.String" required="yes"/>
> <input-symbol key="formId" class="java.lang.String" required="yes"/>
> <body>
> <unique>
> dojo.require("dojo.widget.Editor2");
> dojo.require("dojo.widget.Editor2Plugin.DialogCommands");
> dojo.require("dojo.widget.Editor2Plugin.ColorPicker");
> </unique>
> </body>
> <initialization>
> dojo.widget.createWidget("Editor2", {id: "${id}_widget"},
> dojo.byId('${id}'));
> dojo.event.connect(dojo.byId('${formId}'), "onsubmit", function ()
> {
> dojo.byId('${id}').value =
> dojo.widget.getWidgetById("${id}_widget").getEditorContent()
> })
> </initialization>
> </script>
>
>
>
> Nick Westgate wrote:
> > Hi James.
> >
> > I haven't used it, but perhaps:
> >
> http://www.tapestrycomponents.org/Tassel/app?service=external/ViewComponent&sp=SHtmlArea
> >
> >
> > There are also several for T4 on Tassel.
> >
> > Cheers,
> > Nick.
> >
> >
> > James Sherwood wrote:
> >> Hello,
> >>
> >> I am looking for a Rich Text Editor component for tapestry that is
> >> compatable with (or maybe i could modify) Tapestry 3 and all large
> >> browsers.
> >>
> >> If someone could point me in the right direction that would be great.
> >>
> >> I have tried creating my own and have been successfull in everything
> >> except getting the information from the RTE to come out in the form
> >> submit, it is always null.
> >>
> >> Any help would be greatly appreciated.
> >>
> >> --James
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
Re: Tapestry RTE Component
Posted by Robert Zeigler <ro...@scazdl.org>.
Couple of people have wrapped fckeditor in the past...
http://www.tapestrycomponents.org/Tassel/app?service=external/
ViewComponent&sp=SJSEditor
http://www.tapestrycomponents.org/Tassel/app?service=external/
ViewComponent&sp=SFCKeditorTA
You might also consider looking at the stitches library, which
contains a WYSIWYG component:
http://www.tapestrycomponents.org/Tassel/app?service=external/
ViewComponent&sp=Sstitches
or
http://stitches.authsum.org
Robert
On Apr 18, 2007, at 4/1812:02 PM , James Sherwood wrote:
> Thanks for the reply,
>
> I actually just got Wizzywig working as a component in tapestry, i
> had messed up the code just slightly enough not to work so i
> started from scratch again and it worked.
>
> I am going to try fckeditor next, it is the most advanced one I
> have found
>
>
> --James
>
> ----- Original Message ----- From: "Steve Shucker"
> <ss...@vmsinfo.com>
> To: "Tapestry users" <us...@tapestry.apache.org>
> Sent: Wednesday, April 18, 2007 1:55 PM
> Subject: Re: Tapestry RTE Component
>
>
>> My company needs one too. We wrapped the dojo Editor2 component.
>> I helped someone get a quick demo of this working a few weeks ago,
>> but I don't know if it's 100%. If you're using version 4.1.1,
>> you're welcome to use this.
>>
>> -Steve
>>
>> DojoEditor.java:
>>
>> import java.util.HashMap;
>> import java.util.Map;
>>
>> import org.apache.tapestry.form.AbstractFormComponent;
>> import org.apache.tapestry.IMarkupWriter;
>> import org.apache.tapestry.IRequestCycle;
>> import org.apache.tapestry.IScript;
>> import org.apache.tapestry.PageRenderSupport;
>> import org.apache.tapestry.TapestryUtils;
>> import org.apache.tapestry.annotations.ComponentClass;
>> import org.apache.tapestry.annotations.InjectScript;
>> import org.apache.tapestry.annotations.Parameter;
>>
>> @ComponentClass(allowBody=true)
>> public abstract class DojoEditor extends AbstractFormComponent {
>> @Parameter(required=true)
>> public abstract String getValue();
>> public abstract void setValue(String value) ;
>> @InjectScript("DojoEditor.script")
>> public abstract IScript getScript();
>> /**
>> * @see
>> org.apache.tapestry.form.AbstractFormComponent#renderFormComponent
>> (org.apache.tapestry.IMarkupWriter,
>> * org.apache.tapestry.IRequestCycle)
>> */
>> protected void renderFormComponent(IMarkupWriter writer,
>> IRequestCycle cycle) {
>> PageRenderSupport pageRenderSupport =
>> TapestryUtils.getPageRenderSupport(cycle, this);
>>
>> Map<String,Object> symbols = new HashMap<String,Object>();
>> symbols.put("id", getClientId());
>> symbols.put("formId", getForm().getClientId());
>> getScript().execute(this, cycle, pageRenderSupport, symbols);
>>
>> renderDelegatePrefix(writer, cycle);
>>
>> writer.begin("textArea");
>> writer.attribute("style","width:700px; height:200px");
>> renderIdAttribute(writer, cycle);
>> writer.attribute("name", getName());
>> renderInformalParameters(writer, cycle);
>> renderBody(writer, cycle);
>> writer.printRaw(getValue());
>> writer.end();
>> renderDelegateSuffix(writer, cycle);
>> }
>>
>> /**
>> * @see
>> org.apache.tapestry.form.AbstractFormComponent#rewindFormComponent
>> (org.apache.tapestry.IMarkupWriter,
>> * org.apache.tapestry.IRequestCycle)
>> */
>> protected void rewindFormComponent(IMarkupWriter writer,
>> IRequestCycle cycle) {
>> setValue(cycle.getParameter(getName()));
>> }
>>
>> }
>>
>> DojoEditor.script:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>> <!DOCTYPE script PUBLIC
>> "-//Apache Software Foundation//Tapestry Script Specification
>> 3.0//EN"
>> "http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd">
>>
>> <script>
>> <input-symbol key="id" class="java.lang.String" required="yes"/>
>> <input-symbol key="formId" class="java.lang.String"
>> required="yes"/>
>> <body>
>> <unique>
>> dojo.require("dojo.widget.Editor2");
>> dojo.require("dojo.widget.Editor2Plugin.DialogCommands");
>> dojo.require("dojo.widget.Editor2Plugin.ColorPicker");
>> </unique>
>> </body>
>> <initialization>
>> dojo.widget.createWidget("Editor2", {id: "${id}_widget"},
>> dojo.byId('${id}'));
>> dojo.event.connect(dojo.byId('${formId}'), "onsubmit",
>> function () {
>> dojo.byId('${id}').value = dojo.widget.getWidgetById("$
>> {id}_widget").getEditorContent()
>> })
>> </initialization>
>> </script>
>>
>>
>>
>> Nick Westgate wrote:
>>> Hi James.
>>>
>>> I haven't used it, but perhaps:
>>> http://www.tapestrycomponents.org/Tassel/app?service=external/
>>> ViewComponent&sp=SHtmlArea
>>>
>>> There are also several for T4 on Tassel.
>>>
>>> Cheers,
>>> Nick.
>>>
>>>
>>> James Sherwood wrote:
>>>> Hello,
>>>>
>>>> I am looking for a Rich Text Editor component for tapestry that
>>>> is compatable with (or maybe i could modify) Tapestry 3 and all
>>>> large browsers.
>>>>
>>>> If someone could point me in the right direction that would be
>>>> great.
>>>>
>>>> I have tried creating my own and have been successfull in
>>>> everything except getting the information from the RTE to come
>>>> out in the form submit, it is always null.
>>>>
>>>> Any help would be greatly appreciated.
>>>>
>>>> --James
>>>>
>>>> -------------------------------------------------------------------
>>>> --
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>>>
>>>
>>>
>>> --------------------------------------------------------------------
>>> -
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>> __________ NOD32 2202 (20070418) Information __________
>>
>> This message was checked by NOD32 antivirus system.
>> http://www.eset.com
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Tapestry RTE Component
Posted by James Sherwood <js...@rgisolutions.com>.
Thanks for the reply,
I actually just got Wizzywig working as a component in tapestry, i had
messed up the code just slightly enough not to work so i started from
scratch again and it worked.
I am going to try fckeditor next, it is the most advanced one I have found
--James
----- Original Message -----
From: "Steve Shucker" <ss...@vmsinfo.com>
To: "Tapestry users" <us...@tapestry.apache.org>
Sent: Wednesday, April 18, 2007 1:55 PM
Subject: Re: Tapestry RTE Component
> My company needs one too. We wrapped the dojo Editor2 component. I
> helped someone get a quick demo of this working a few weeks ago, but I
> don't know if it's 100%. If you're using version 4.1.1, you're welcome to
> use this.
>
> -Steve
>
> DojoEditor.java:
>
> import java.util.HashMap;
> import java.util.Map;
>
> import org.apache.tapestry.form.AbstractFormComponent;
> import org.apache.tapestry.IMarkupWriter;
> import org.apache.tapestry.IRequestCycle;
> import org.apache.tapestry.IScript;
> import org.apache.tapestry.PageRenderSupport;
> import org.apache.tapestry.TapestryUtils;
> import org.apache.tapestry.annotations.ComponentClass;
> import org.apache.tapestry.annotations.InjectScript;
> import org.apache.tapestry.annotations.Parameter;
>
> @ComponentClass(allowBody=true)
> public abstract class DojoEditor extends AbstractFormComponent {
> @Parameter(required=true)
> public abstract String getValue();
> public abstract void setValue(String value) ;
> @InjectScript("DojoEditor.script")
> public abstract IScript getScript();
> /**
> * @see
> org.apache.tapestry.form.AbstractFormComponent#renderFormComponent(org.apache.tapestry.IMarkupWriter,
> * org.apache.tapestry.IRequestCycle)
> */
> protected void renderFormComponent(IMarkupWriter writer, IRequestCycle
> cycle) {
> PageRenderSupport pageRenderSupport =
> TapestryUtils.getPageRenderSupport(cycle, this);
>
> Map<String,Object> symbols = new HashMap<String,Object>();
> symbols.put("id", getClientId());
> symbols.put("formId", getForm().getClientId());
> getScript().execute(this, cycle, pageRenderSupport, symbols);
>
> renderDelegatePrefix(writer, cycle);
>
> writer.begin("textArea");
> writer.attribute("style","width:700px; height:200px");
> renderIdAttribute(writer, cycle);
> writer.attribute("name", getName());
> renderInformalParameters(writer, cycle);
> renderBody(writer, cycle);
> writer.printRaw(getValue());
> writer.end();
> renderDelegateSuffix(writer, cycle);
> }
>
> /**
> * @see
> org.apache.tapestry.form.AbstractFormComponent#rewindFormComponent(org.apache.tapestry.IMarkupWriter,
> * org.apache.tapestry.IRequestCycle)
> */
> protected void rewindFormComponent(IMarkupWriter writer, IRequestCycle
> cycle) {
> setValue(cycle.getParameter(getName()));
> }
>
> }
>
> DojoEditor.script:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!DOCTYPE script PUBLIC
> "-//Apache Software Foundation//Tapestry Script Specification 3.0//EN"
> "http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd">
>
> <script>
> <input-symbol key="id" class="java.lang.String" required="yes"/>
> <input-symbol key="formId" class="java.lang.String" required="yes"/>
> <body>
> <unique>
> dojo.require("dojo.widget.Editor2");
> dojo.require("dojo.widget.Editor2Plugin.DialogCommands");
> dojo.require("dojo.widget.Editor2Plugin.ColorPicker");
> </unique>
> </body>
> <initialization>
> dojo.widget.createWidget("Editor2", {id: "${id}_widget"},
> dojo.byId('${id}'));
> dojo.event.connect(dojo.byId('${formId}'), "onsubmit", function ()
> {
> dojo.byId('${id}').value =
> dojo.widget.getWidgetById("${id}_widget").getEditorContent()
> })
> </initialization>
> </script>
>
>
>
> Nick Westgate wrote:
>> Hi James.
>>
>> I haven't used it, but perhaps:
>> http://www.tapestrycomponents.org/Tassel/app?service=external/ViewComponent&sp=SHtmlArea
>>
>> There are also several for T4 on Tassel.
>>
>> Cheers,
>> Nick.
>>
>>
>> James Sherwood wrote:
>>> Hello,
>>>
>>> I am looking for a Rich Text Editor component for tapestry that is
>>> compatable with (or maybe i could modify) Tapestry 3 and all large
>>> browsers.
>>>
>>> If someone could point me in the right direction that would be great.
>>>
>>> I have tried creating my own and have been successfull in everything
>>> except getting the information from the RTE to come out in the form
>>> submit, it is always null.
>>>
>>> Any help would be greatly appreciated.
>>>
>>> --James
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
> __________ NOD32 2202 (20070418) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Tapestry RTE Component
Posted by Steve Shucker <ss...@vmsinfo.com>.
My company needs one too. We wrapped the dojo Editor2 component. I
helped someone get a quick demo of this working a few weeks ago, but I
don't know if it's 100%. If you're using version 4.1.1, you're welcome
to use this.
-Steve
DojoEditor.java:
import java.util.HashMap;
import java.util.Map;
import org.apache.tapestry.form.AbstractFormComponent;
import org.apache.tapestry.IMarkupWriter;
import org.apache.tapestry.IRequestCycle;
import org.apache.tapestry.IScript;
import org.apache.tapestry.PageRenderSupport;
import org.apache.tapestry.TapestryUtils;
import org.apache.tapestry.annotations.ComponentClass;
import org.apache.tapestry.annotations.InjectScript;
import org.apache.tapestry.annotations.Parameter;
@ComponentClass(allowBody=true)
public abstract class DojoEditor extends AbstractFormComponent {
@Parameter(required=true)
public abstract String getValue();
public abstract void setValue(String value) ;
@InjectScript("DojoEditor.script")
public abstract IScript getScript();
/**
* @see
org.apache.tapestry.form.AbstractFormComponent#renderFormComponent(org.apache.tapestry.IMarkupWriter,
* org.apache.tapestry.IRequestCycle)
*/
protected void renderFormComponent(IMarkupWriter writer,
IRequestCycle cycle) {
PageRenderSupport pageRenderSupport =
TapestryUtils.getPageRenderSupport(cycle, this);
Map<String,Object> symbols = new HashMap<String,Object>();
symbols.put("id", getClientId());
symbols.put("formId", getForm().getClientId());
getScript().execute(this, cycle, pageRenderSupport, symbols);
renderDelegatePrefix(writer, cycle);
writer.begin("textArea");
writer.attribute("style","width:700px; height:200px");
renderIdAttribute(writer, cycle);
writer.attribute("name", getName());
renderInformalParameters(writer, cycle);
renderBody(writer, cycle);
writer.printRaw(getValue());
writer.end();
renderDelegateSuffix(writer, cycle);
}
/**
* @see
org.apache.tapestry.form.AbstractFormComponent#rewindFormComponent(org.apache.tapestry.IMarkupWriter,
* org.apache.tapestry.IRequestCycle)
*/
protected void rewindFormComponent(IMarkupWriter writer,
IRequestCycle cycle) {
setValue(cycle.getParameter(getName()));
}
}
DojoEditor.script:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script PUBLIC
"-//Apache Software Foundation//Tapestry Script Specification 3.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd">
<script>
<input-symbol key="id" class="java.lang.String" required="yes"/>
<input-symbol key="formId" class="java.lang.String" required="yes"/>
<body>
<unique>
dojo.require("dojo.widget.Editor2");
dojo.require("dojo.widget.Editor2Plugin.DialogCommands");
dojo.require("dojo.widget.Editor2Plugin.ColorPicker");
</unique>
</body>
<initialization>
dojo.widget.createWidget("Editor2", {id: "${id}_widget"},
dojo.byId('${id}'));
dojo.event.connect(dojo.byId('${formId}'), "onsubmit", function () {
dojo.byId('${id}').value =
dojo.widget.getWidgetById("${id}_widget").getEditorContent()
})
</initialization>
</script>
Nick Westgate wrote:
> Hi James.
>
> I haven't used it, but perhaps:
> http://www.tapestrycomponents.org/Tassel/app?service=external/ViewComponent&sp=SHtmlArea
>
>
> There are also several for T4 on Tassel.
>
> Cheers,
> Nick.
>
>
> James Sherwood wrote:
>> Hello,
>>
>> I am looking for a Rich Text Editor component for tapestry that is
>> compatable with (or maybe i could modify) Tapestry 3 and all large
>> browsers.
>>
>> If someone could point me in the right direction that would be great.
>>
>> I have tried creating my own and have been successfull in everything
>> except getting the information from the RTE to come out in the form
>> submit, it is always null.
>>
>> Any help would be greatly appreciated.
>>
>> --James
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Tapestry RTE Component
Posted by Nick Westgate <ni...@key-planning.co.jp>.
Hi James.
I haven't used it, but perhaps:
http://www.tapestrycomponents.org/Tassel/app?service=external/ViewComponent&sp=SHtmlArea
There are also several for T4 on Tassel.
Cheers,
Nick.
James Sherwood wrote:
> Hello,
>
> I am looking for a Rich Text Editor component for tapestry that is
> compatable with (or maybe i could modify) Tapestry 3 and all large
> browsers.
>
> If someone could point me in the right direction that would be great.
>
> I have tried creating my own and have been successfull in everything
> except getting the information from the RTE to come out in the form
> submit, it is always null.
>
> Any help would be greatly appreciated.
>
> --James
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Tapestry RTE Component
Posted by James Sherwood <js...@rgisolutions.com>.
Hello,
I am looking for a Rich Text Editor component for tapestry that is
compatable with (or maybe i could modify) Tapestry 3 and all large browsers.
If someone could point me in the right direction that would be great.
I have tried creating my own and have been successfull in everything except
getting the information from the RTE to come out in the form submit, it is
always null.
Any help would be greatly appreciated.
--James
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Help with jsessionid
Posted by Andrea Chiumenti <ki...@gmail.com>.
It doesn't work, same result with:
<contribution configuration-id="tapestry.asset.UnprotectedAssets">
<unprotected-resource contains="^/js/dojo/" />
</contribution>
On 4/17/07, Andreas Andreou <an...@di.uoa.gr> wrote:
>
> i thought this was just for classpath assets!
>
> On 4/17/07, Jesse Kuhnert <jk...@gmail.com> wrote:
> >
> > Add the path to your custom dojo locations to the unprotected assets
> > configuration and it'll work - that's why it's happening:
> >
> >
> >
> http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/config/tapestry.asset.UnprotectedAssets.html
> >
> > On 4/17/07, Andrea Chiumenti <ki...@gmail.com> wrote:
> > >
> > > Andreas,
> > > you got the point
> > >
> > > one should be able to:
> > > <asset name=".." path="..." strip-jsession="ognl:true"/>
> > >
> > >
> > >
> > > On 4/17/07, Andreas Andreou <an...@di.uoa.gr> wrote:
> > > >
> > > > http://issues.apache.org/jira/browse/TAPESTRY-950 is a bit
> related...
> > > > I think it was resolved by Jesse by making the asset service strip
> > > > those...
> > > >
> > > > But since you have changed the location of dojo (to be in your
> > context)
> > > > the asset service isn't handling it any more.
> > > >
> > > > An idea is to create an IAsset (
> > > >
> > > >
> > >
> >
> http://tapestry.apache.org/tapestry4.1/tapestry-framework/apidocs/org/apache/tapestry/IAsset.html
> > > > )
> > > > decorator that strips the jsessionid
> > > > Another idea is to disable url-rewriting only for the /js path...
> > > >
> > > > Here's an interesting resource i was once given by Patrick Moore :
> > > > http://randomcoder.com/articles/jsessionid-considered-harmful
> > > >
> > > >
> > > >
> > > > On 4/17/07, Andrea Chiumenti <ki...@gmail.com> wrote:
> > > > >
> > > > > no no, I'm just using mvn jetty:run
> > > > >
> > > > > On 4/17/07, Martino Piccinato <ma...@gmail.com> wrote:
> > > > > >
> > > > > > I don't think the right solution is turning off url rewriting:
> do
> > > you
> > > > > have
> > > > > > a
> > > > > > web server (e.g. apache) in fron of your servlet container? in
> > this
> > > > case
> > > > > > the
> > > > > > cause might be apache not understanding/discarding the part of
> the
> > > > path
> > > > > > where the semicolon (";") is used, a couple of url rewrite
> should
> > do
> > > > the
> > > > > > work.
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> > > > Tapestry / Tacos developer
> > > > Open Source / JEE Consulting
> > > >
> > >
> >
> >
> >
> > --
> > Jesse Kuhnert
> > Tapestry/Dojo team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> >
>
>
>
> --
> Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
>
Re: Help with jsessionid
Posted by Andreas Andreou <an...@di.uoa.gr>.
i thought this was just for classpath assets!
On 4/17/07, Jesse Kuhnert <jk...@gmail.com> wrote:
>
> Add the path to your custom dojo locations to the unprotected assets
> configuration and it'll work - that's why it's happening:
>
>
> http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/config/tapestry.asset.UnprotectedAssets.html
>
> On 4/17/07, Andrea Chiumenti <ki...@gmail.com> wrote:
> >
> > Andreas,
> > you got the point
> >
> > one should be able to:
> > <asset name=".." path="..." strip-jsession="ognl:true"/>
> >
> >
> >
> > On 4/17/07, Andreas Andreou <an...@di.uoa.gr> wrote:
> > >
> > > http://issues.apache.org/jira/browse/TAPESTRY-950 is a bit related...
> > > I think it was resolved by Jesse by making the asset service strip
> > > those...
> > >
> > > But since you have changed the location of dojo (to be in your
> context)
> > > the asset service isn't handling it any more.
> > >
> > > An idea is to create an IAsset (
> > >
> > >
> >
> http://tapestry.apache.org/tapestry4.1/tapestry-framework/apidocs/org/apache/tapestry/IAsset.html
> > > )
> > > decorator that strips the jsessionid
> > > Another idea is to disable url-rewriting only for the /js path...
> > >
> > > Here's an interesting resource i was once given by Patrick Moore :
> > > http://randomcoder.com/articles/jsessionid-considered-harmful
> > >
> > >
> > >
> > > On 4/17/07, Andrea Chiumenti <ki...@gmail.com> wrote:
> > > >
> > > > no no, I'm just using mvn jetty:run
> > > >
> > > > On 4/17/07, Martino Piccinato <ma...@gmail.com> wrote:
> > > > >
> > > > > I don't think the right solution is turning off url rewriting: do
> > you
> > > > have
> > > > > a
> > > > > web server (e.g. apache) in fron of your servlet container? in
> this
> > > case
> > > > > the
> > > > > cause might be apache not understanding/discarding the part of the
> > > path
> > > > > where the semicolon (";") is used, a couple of url rewrite should
> do
> > > the
> > > > > work.
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> > > Tapestry / Tacos developer
> > > Open Source / JEE Consulting
> > >
> >
>
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>
--
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
Re: Help with jsessionid
Posted by Jesse Kuhnert <jk...@gmail.com>.
Add the path to your custom dojo locations to the unprotected assets
configuration and it'll work - that's why it's happening:
http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/config/tapestry.asset.UnprotectedAssets.html
On 4/17/07, Andrea Chiumenti <ki...@gmail.com> wrote:
>
> Andreas,
> you got the point
>
> one should be able to:
> <asset name=".." path="..." strip-jsession="ognl:true"/>
>
>
>
> On 4/17/07, Andreas Andreou <an...@di.uoa.gr> wrote:
> >
> > http://issues.apache.org/jira/browse/TAPESTRY-950 is a bit related...
> > I think it was resolved by Jesse by making the asset service strip
> > those...
> >
> > But since you have changed the location of dojo (to be in your context)
> > the asset service isn't handling it any more.
> >
> > An idea is to create an IAsset (
> >
> >
> http://tapestry.apache.org/tapestry4.1/tapestry-framework/apidocs/org/apache/tapestry/IAsset.html
> > )
> > decorator that strips the jsessionid
> > Another idea is to disable url-rewriting only for the /js path...
> >
> > Here's an interesting resource i was once given by Patrick Moore :
> > http://randomcoder.com/articles/jsessionid-considered-harmful
> >
> >
> >
> > On 4/17/07, Andrea Chiumenti <ki...@gmail.com> wrote:
> > >
> > > no no, I'm just using mvn jetty:run
> > >
> > > On 4/17/07, Martino Piccinato <ma...@gmail.com> wrote:
> > > >
> > > > I don't think the right solution is turning off url rewriting: do
> you
> > > have
> > > > a
> > > > web server (e.g. apache) in fron of your servlet container? in this
> > case
> > > > the
> > > > cause might be apache not understanding/discarding the part of the
> > path
> > > > where the semicolon (";") is used, a couple of url rewrite should do
> > the
> > > > work.
> > > >
> > >
> >
> >
> >
> > --
> > Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> > Tapestry / Tacos developer
> > Open Source / JEE Consulting
> >
>
--
Jesse Kuhnert
Tapestry/Dojo team member/developer
Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: Help with jsessionid
Posted by Andrea Chiumenti <ki...@gmail.com>.
Andreas,
you got the point
one should be able to:
<asset name=".." path="..." strip-jsession="ognl:true"/>
On 4/17/07, Andreas Andreou <an...@di.uoa.gr> wrote:
>
> http://issues.apache.org/jira/browse/TAPESTRY-950 is a bit related...
> I think it was resolved by Jesse by making the asset service strip
> those...
>
> But since you have changed the location of dojo (to be in your context)
> the asset service isn't handling it any more.
>
> An idea is to create an IAsset (
>
> http://tapestry.apache.org/tapestry4.1/tapestry-framework/apidocs/org/apache/tapestry/IAsset.html
> )
> decorator that strips the jsessionid
> Another idea is to disable url-rewriting only for the /js path...
>
> Here's an interesting resource i was once given by Patrick Moore :
> http://randomcoder.com/articles/jsessionid-considered-harmful
>
>
>
> On 4/17/07, Andrea Chiumenti <ki...@gmail.com> wrote:
> >
> > no no, I'm just using mvn jetty:run
> >
> > On 4/17/07, Martino Piccinato <ma...@gmail.com> wrote:
> > >
> > > I don't think the right solution is turning off url rewriting: do you
> > have
> > > a
> > > web server (e.g. apache) in fron of your servlet container? in this
> case
> > > the
> > > cause might be apache not understanding/discarding the part of the
> path
> > > where the semicolon (";") is used, a couple of url rewrite should do
> the
> > > work.
> > >
> >
>
>
>
> --
> Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
>
Re: Help with jsessionid
Posted by Andreas Andreou <an...@di.uoa.gr>.
http://issues.apache.org/jira/browse/TAPESTRY-950 is a bit related...
I think it was resolved by Jesse by making the asset service strip those...
But since you have changed the location of dojo (to be in your context)
the asset service isn't handling it any more.
An idea is to create an IAsset (
http://tapestry.apache.org/tapestry4.1/tapestry-framework/apidocs/org/apache/tapestry/IAsset.html)
decorator that strips the jsessionid
Another idea is to disable url-rewriting only for the /js path...
Here's an interesting resource i was once given by Patrick Moore :
http://randomcoder.com/articles/jsessionid-considered-harmful
On 4/17/07, Andrea Chiumenti <ki...@gmail.com> wrote:
>
> no no, I'm just using mvn jetty:run
>
> On 4/17/07, Martino Piccinato <ma...@gmail.com> wrote:
> >
> > I don't think the right solution is turning off url rewriting: do you
> have
> > a
> > web server (e.g. apache) in fron of your servlet container? in this case
> > the
> > cause might be apache not understanding/discarding the part of the path
> > where the semicolon (";") is used, a couple of url rewrite should do the
> > work.
> >
>
--
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
Re: Help with jsessionid
Posted by Andrea Chiumenti <ki...@gmail.com>.
no no, I'm just using mvn jetty:run
On 4/17/07, Martino Piccinato <ma...@gmail.com> wrote:
>
> I don't think the right solution is turning off url rewriting: do you have
> a
> web server (e.g. apache) in fron of your servlet container? in this case
> the
> cause might be apache not understanding/discarding the part of the path
> where the semicolon (";") is used, a couple of url rewrite should do the
> work.
>
Re: Help with jsessionid
Posted by Martino Piccinato <ma...@gmail.com>.
I don't think the right solution is turning off url rewriting: do you have a
web server (e.g. apache) in fron of your servlet container? in this case the
cause might be apache not understanding/discarding the part of the path
where the semicolon (";") is used, a couple of url rewrite should do the
work.
Re: Help with jsessionid
Posted by Andrea Chiumenti <ki...@gmail.com>.
...more
if I don't provide dojoSource and dojoPath to the shell (using the default
one), it work, but of course I'm not able to use dojo-0.4.2 that fixes a bug
with the MenuBar2!
On 4/17/07, Andrea Chiumenti <ki...@gmail.com> wrote:
>
> Johan,
> if the tag is rendered as indicated in previous email:
>
> <script type="text/javascript">djConfig = {"isDebug":true,"debugContainerId":"debug","baseRelativePath":"/js/dojo/;jsessionid=14BA82F304BF5E5C9C1F84CB52E211A3","preventBackButtonFix":false,"parseWidgets":false,"locale":"en-us"} </script>
>
>
> Firebug shows a series of 404 for dojo, like this one:
> GET http://localhost:8084/js/dojo/;jsessionid=A02C3B2D61815EF4006B318F65D607D2__package__.js
> 404 (33ms)
>
>
> notice how I defined dojo stuff into @Shell in the first email
>
> On 4/17/07, Andrea Chiumenti <ki...@gmail.com> wrote:
> >
> > Andreas,
> > I think cookies are enabled , and I want they stay enabled, but why
> > there is the url rewriting turned on ??
> >
> > and how disable url rewring ?
> >
> > On 4/17/07, Andreas Andreou <an...@di.uoa.gr> wrote:
> > >
> > > Are you interested in cookie-less browsing?
> > > You can disable url-rewriting if you want to...
> > >
> > > On 4/17/07, Andrea Chiumenti < kiuma72@gmail.com> wrote:
> > > >
> > > > This is exactly the problem I'm having ( i.e. a session
> > > initialization
> > > > problem)
> > > >
> > > > It's happening this: I'm accessing an External page an I have this
> > > method
> > > > fom IExternalPage:
> > > >
> > > > public void activateExternalPage(Object[] parameters, IRequestCycle
> > > cycle)
> > > > {
> > > > if ((parameters.length > 0) &&
> > > > (parameters[0].toString().equalsIgnoreCase("reset"))) {
> > > > Wizard wizard = (Wizard) getComponent("wizard");
> > > > wizard.reset();
> > > > setPerson(new Person());
> > > > }
> > > > getPerson();
> > > > getCities();
> > > > }
> > > >
> > > > where person and cities are injected ASO
> > > > <inject property="person" type="state" object="wizardPerson"/>
> > > > <inject property="cities" type="state" object="cities"/>
> > > >
> > > > all is in java 1.4
> > > >
> > > > When I access the page for the first time I have the jsessionid
> > > problem.
> > > >
> > > > How can I solve this issue ?
> > > >
> > > > kiuma
> > > > On 4/17/07, Martino Piccinato < martino.piccinato@gmail.com> wrote:
> > > > >
> > > > > sorry just wanted to comment one thing more: if this session
> > > appending
> > > > is
> > > > > happening just the first time you hit the application (so you are
> > > > without
> > > > > a
> > > > > cookie) in this case I think the servlet container is doing the
> > > right
> > > > > thing
> > > > > (it does not know you support cookies on first hit). This might
> > > cause
> > > > > problems to some web server ( e.g. apache for mod_jk connector)
> > > to
> > > > resolve
> > > > > urls.
> > > > >
> > > > > I think this is all that comes to my mind given the informations
> > > you
> > > > gave
> > > > > :-)
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> > > Tapestry / Tacos developer
> > > Open Source / JEE Consulting
> > >
> >
> >
>
Re: Starting with Maven
Posted by Marcos Chicote <mc...@newtechnologies.com.ar>.
Thanks Kalle
I finally got it working without sysdeo (using Run As Server...) and now I
want to configure a repository for my network.
In http://docs.codehaus.org/display/M2ECLIPSE/Project+FAQ says that to
change configuration I have to look for maven xml config file. When
following a link on how to configure maven linked in the codehaus page, I
find that maven xml config file could be in my local repository location or
in my maven installation directory.
As I had only installed codehaus plugin I had no maven installation
directory so I looked for the xml file in my local repository. I found no
such file anywhere.
My next idea was to install maven standalone. But how do I link my maven
standalone installation with the plugin installation? (I need to know this
if I can't configure the plugin to use the network repository, of course)
Sory for all this talk exclusively about maven.
Thanks!
Marcos
----- Original Message -----
From: "Kalle Korhonen" <ka...@gmail.com>
To: "Tapestry users" <us...@tapestry.apache.org>
Sent: Tuesday, April 17, 2007 6:09 PM
Subject: Re: Starting with Maven
> If using sysdeo, make sure you install the devloader, which needs to be
> manually unpacked. Then make sure you have added the libs to the classpath
> and verify that they are loaded by devloader at the start-up. For
> beginners, Merve (http://merve.sourceforge.net/) is an easier option to
run
> Tomcat from Eclipse, works just like Jetty launcher. Sysdeo has more
> functionality, but has it's own oddities.
>
> Kalle
>
> On 4/17/07, Marcos Chicote <mc...@newtechnologies.com.ar> wrote:
> >
> > Hello World!
> >
> > I've just started using Maven2 with Tapestry 4.0.2 and I can't get it to
> > work with tomcat.
> >
> > I've followed the instructions in
> >
http://mail-archives.apache.org/mod_mbox/maven-users/200608.mbox/%3C44D0CCC4.5000402@najdi.si%3E
> >
> > But is still get
> > java.lang.ClassNotFoundException: org.apache.tapestry.RedirectFilter
> >
> > when starting tomcat.
> >
> > Can this be realted to how I start tomcat? I'm using sysdeo plugin.
> > Tomcat version is 5.
> >
> > Can anyone help me? O give me another link with more information on how
to
> > solve this problem?
> >
> > Thanks!
> >
> > Marcos
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Starting with Maven
Posted by Kalle Korhonen <ka...@gmail.com>.
If using sysdeo, make sure you install the devloader, which needs to be
manually unpacked. Then make sure you have added the libs to the classpath
and verify that they are loaded by devloader at the start-up. For
beginners, Merve (http://merve.sourceforge.net/) is an easier option to run
Tomcat from Eclipse, works just like Jetty launcher. Sysdeo has more
functionality, but has it's own oddities.
Kalle
On 4/17/07, Marcos Chicote <mc...@newtechnologies.com.ar> wrote:
>
> Hello World!
>
> I've just started using Maven2 with Tapestry 4.0.2 and I can't get it to
> work with tomcat.
>
> I've followed the instructions in
> http://mail-archives.apache.org/mod_mbox/maven-users/200608.mbox/%3C44D0CCC4.5000402@najdi.si%3E
>
> But is still get
> java.lang.ClassNotFoundException: org.apache.tapestry.RedirectFilter
>
> when starting tomcat.
>
> Can this be realted to how I start tomcat? I'm using sysdeo plugin.
> Tomcat version is 5.
>
> Can anyone help me? O give me another link with more information on how to
> solve this problem?
>
> Thanks!
>
> Marcos
>
Re: Starting with Maven
Posted by Marcos Chicote <mc...@newtechnologies.com.ar>.
Thanks Borut!
I'll try it tomorrow because my work day is almost over.
----- Original Message -----
From: "Borut Bolčina" <bo...@gmail.com>
To: "Tapestry users" <us...@tapestry.apache.org>
Sent: Tuesday, April 17, 2007 2:52 PM
Subject: Re: Starting with Maven
> Hello Marcos,
>
> you can also try:
>
> 1. Install Maven 2, if not already installed.
> 2. Go to your Eclipse workspace.
> 3. Type
> mvn archetype:create -DarchetypeGroupId=com.codecafe.archetypes
> -DarchetypeArtifactId=tapestry-simple
> -DremoteRepositories=http://codecafe.dev-hda.com/repository
> -DarchetypeVersion=4.1.2-SNAPSHOT -DgroupId=c.b -DartifactId=view
> This is a Maven 2 archetype for Tapestry 4. Read more at
> http://www.joshlong.com//jl/entry/20070227
> 4. Type
> mvn eclipse:eclipse
> which will create Eclipse project out of maven created skeleton T4
> project.
> 5. Import this project as existing project into Eclipse workspace.
> 6. If you don't want to use m2eclipse plugin (
> http://m2eclipse.codehaus.org/), you can still use Maven and Eclipse,
> just define M2_REPO variable (Preferences/Java/Build Path/Classpath
> Variables). The benefit of using m2eclipse plugin is that it adds Maven
2
> library as opposed to a long list of libs for your web project and a
dialog
> to add dependencies. But it has issues unfortunately.
> 7. You can run the web app in two ways now: (1) from the command line
> mvn jetty:run and (2) with Eclipse Jetty plugin (
> http://jettylauncher.sourceforge.net/).
>
>
> Cheers,
> Borut
>
>
> 2007/4/17, Marcos Chicote <mc...@newtechnologies.com.ar>:
> >
> > Hello World!
> >
> > I've just started using Maven2 with Tapestry 4.0.2 and I can't get it to
> > work with tomcat.
> >
> > I've followed the instructions in
> >
http://mail-archives.apache.org/mod_mbox/maven-users/200608.mbox/%3C44D0CCC4.5000402@najdi.si%3E
> >
> > But is still get
> > java.lang.ClassNotFoundException: org.apache.tapestry.RedirectFilter
> >
> > when starting tomcat.
> >
> > Can this be realted to how I start tomcat? I'm using sysdeo plugin.
> > Tomcat version is 5.
> >
> > Can anyone help me? O give me another link with more information on how
to
> > solve this problem?
> >
> > Thanks!
> >
> > Marcos
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Starting with Maven
Posted by Borut Bolčina <bo...@gmail.com>.
Hello Marcos,
you can also try:
1. Install Maven 2, if not already installed.
2. Go to your Eclipse workspace.
3. Type
mvn archetype:create -DarchetypeGroupId=com.codecafe.archetypes
-DarchetypeArtifactId=tapestry-simple
-DremoteRepositories=http://codecafe.dev-hda.com/repository
-DarchetypeVersion=4.1.2-SNAPSHOT -DgroupId=c.b -DartifactId=view
This is a Maven 2 archetype for Tapestry 4. Read more at
http://www.joshlong.com//jl/entry/20070227
4. Type
mvn eclipse:eclipse
which will create Eclipse project out of maven created skeleton T4
project.
5. Import this project as existing project into Eclipse workspace.
6. If you don't want to use m2eclipse plugin (
http://m2eclipse.codehaus.org/), you can still use Maven and Eclipse,
just define M2_REPO variable (Preferences/Java/Build Path/Classpath
Variables). The benefit of using m2eclipse plugin is that it adds Maven 2
library as opposed to a long list of libs for your web project and a dialog
to add dependencies. But it has issues unfortunately.
7. You can run the web app in two ways now: (1) from the command line
mvn jetty:run and (2) with Eclipse Jetty plugin (
http://jettylauncher.sourceforge.net/).
Cheers,
Borut
2007/4/17, Marcos Chicote <mc...@newtechnologies.com.ar>:
>
> Hello World!
>
> I've just started using Maven2 with Tapestry 4.0.2 and I can't get it to
> work with tomcat.
>
> I've followed the instructions in
> http://mail-archives.apache.org/mod_mbox/maven-users/200608.mbox/%3C44D0CCC4.5000402@najdi.si%3E
>
> But is still get
> java.lang.ClassNotFoundException: org.apache.tapestry.RedirectFilter
>
> when starting tomcat.
>
> Can this be realted to how I start tomcat? I'm using sysdeo plugin.
> Tomcat version is 5.
>
> Can anyone help me? O give me another link with more information on how to
> solve this problem?
>
> Thanks!
>
> Marcos
>
Starting with Maven
Posted by Marcos Chicote <mc...@newtechnologies.com.ar>.
Hello World!
I've just started using Maven2 with Tapestry 4.0.2 and I can't get it to work with tomcat.
I've followed the instructions in http://mail-archives.apache.org/mod_mbox/maven-users/200608.mbox/%3C44D0CCC4.5000402@najdi.si%3E
But is still get
java.lang.ClassNotFoundException: org.apache.tapestry.RedirectFilter
when starting tomcat.
Can this be realted to how I start tomcat? I'm using sysdeo plugin.
Tomcat version is 5.
Can anyone help me? O give me another link with more information on how to solve this problem?
Thanks!
Marcos
Re: Help with jsessionid
Posted by Andrea Chiumenti <ki...@gmail.com>.
Johan,
if the tag is rendered as indicated in previous email:
<script type="text/javascript">djConfig =
{"isDebug":true,"debugContainerId":"debug","baseRelativePath":"/js/dojo/;jsessionid=14BA82F304BF5E5C9C1F84CB52E211A3","preventBackButtonFix":false,"parseWidgets":false,"locale":"en-us"}
</script>
Firebug shows a series of 404 for dojo, like this one:
GET http://localhost:8084/js/dojo/;jsessionid=A02C3B2D61815EF4006B318F65D607D2__package__.js404
(33ms)
notice how I defined dojo stuff into @Shell in the first email
On 4/17/07, Andrea Chiumenti <ki...@gmail.com> wrote:
>
> Andreas,
> I think cookies are enabled , and I want they stay enabled, but why there
> is the url rewriting turned on ??
>
> and how disable url rewring ?
>
> On 4/17/07, Andreas Andreou <an...@di.uoa.gr> wrote:
> >
> > Are you interested in cookie-less browsing?
> > You can disable url-rewriting if you want to...
> >
> > On 4/17/07, Andrea Chiumenti <ki...@gmail.com> wrote:
> > >
> > > This is exactly the problem I'm having ( i.e. a session initialization
> > > problem)
> > >
> > > It's happening this: I'm accessing an External page an I have this
> > method
> > > fom IExternalPage:
> > >
> > > public void activateExternalPage(Object[] parameters, IRequestCycle
> > cycle)
> > > {
> > > if ((parameters.length > 0) &&
> > > (parameters[0].toString().equalsIgnoreCase("reset"))) {
> > > Wizard wizard = (Wizard) getComponent("wizard");
> > > wizard.reset();
> > > setPerson(new Person());
> > > }
> > > getPerson();
> > > getCities();
> > > }
> > >
> > > where person and cities are injected ASO
> > > <inject property="person" type="state" object="wizardPerson"/>
> > > <inject property="cities" type="state" object="cities"/>
> > >
> > > all is in java 1.4
> > >
> > > When I access the page for the first time I have the jsessionid
> > problem.
> > >
> > > How can I solve this issue ?
> > >
> > > kiuma
> > > On 4/17/07, Martino Piccinato < martino.piccinato@gmail.com> wrote:
> > > >
> > > > sorry just wanted to comment one thing more: if this session
> > appending
> > > is
> > > > happening just the first time you hit the application (so you are
> > > without
> > > > a
> > > > cookie) in this case I think the servlet container is doing the
> > right
> > > > thing
> > > > (it does not know you support cookies on first hit). This might
> > cause
> > > > problems to some web server ( e.g. apache for mod_jk connector) to
> > > resolve
> > > > urls.
> > > >
> > > > I think this is all that comes to my mind given the informations you
> > > gave
> > > > :-)
> > > >
> > >
> >
> >
> >
> > --
> > Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> > Tapestry / Tacos developer
> > Open Source / JEE Consulting
> >
>
>
Re: Help with jsessionid
Posted by Andrea Chiumenti <ki...@gmail.com>.
Andreas,
I think cookies are enabled , and I want they stay enabled, but why there
is the url rewriting turned on ??
and how disable url rewring ?
On 4/17/07, Andreas Andreou <an...@di.uoa.gr> wrote:
>
> Are you interested in cookie-less browsing?
> You can disable url-rewriting if you want to...
>
> On 4/17/07, Andrea Chiumenti <ki...@gmail.com> wrote:
> >
> > This is exactly the problem I'm having (i.e. a session initialization
> > problem)
> >
> > It's happening this: I'm accessing an External page an I have this
> method
> > fom IExternalPage:
> >
> > public void activateExternalPage(Object[] parameters, IRequestCycle
> cycle)
> > {
> > if ((parameters.length > 0) &&
> > (parameters[0].toString().equalsIgnoreCase("reset"))) {
> > Wizard wizard = (Wizard) getComponent("wizard");
> > wizard.reset();
> > setPerson(new Person());
> > }
> > getPerson();
> > getCities();
> > }
> >
> > where person and cities are injected ASO
> > <inject property="person" type="state" object="wizardPerson"/>
> > <inject property="cities" type="state" object="cities"/>
> >
> > all is in java 1.4
> >
> > When I access the page for the first time I have the jsessionid problem.
> >
> > How can I solve this issue ?
> >
> > kiuma
> > On 4/17/07, Martino Piccinato < martino.piccinato@gmail.com> wrote:
> > >
> > > sorry just wanted to comment one thing more: if this session appending
> > is
> > > happening just the first time you hit the application (so you are
> > without
> > > a
> > > cookie) in this case I think the servlet container is doing the right
> > > thing
> > > (it does not know you support cookies on first hit). This might cause
> > > problems to some web server (e.g. apache for mod_jk connector) to
> > resolve
> > > urls.
> > >
> > > I think this is all that comes to my mind given the informations you
> > gave
> > > :-)
> > >
> >
>
>
>
> --
> Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
>
Re: Help with jsessionid
Posted by Andreas Andreou <an...@di.uoa.gr>.
Are you interested in cookie-less browsing?
You can disable url-rewriting if you want to...
On 4/17/07, Andrea Chiumenti <ki...@gmail.com> wrote:
>
> This is exactly the problem I'm having (i.e. a session initialization
> problem)
>
> It's happening this: I'm accessing an External page an I have this method
> fom IExternalPage:
>
> public void activateExternalPage(Object[] parameters, IRequestCycle cycle)
> {
> if ((parameters.length > 0) &&
> (parameters[0].toString().equalsIgnoreCase("reset"))) {
> Wizard wizard = (Wizard) getComponent("wizard");
> wizard.reset();
> setPerson(new Person());
> }
> getPerson();
> getCities();
> }
>
> where person and cities are injected ASO
> <inject property="person" type="state" object="wizardPerson"/>
> <inject property="cities" type="state" object="cities"/>
>
> all is in java 1.4
>
> When I access the page for the first time I have the jsessionid problem.
>
> How can I solve this issue ?
>
> kiuma
> On 4/17/07, Martino Piccinato < martino.piccinato@gmail.com> wrote:
> >
> > sorry just wanted to comment one thing more: if this session appending
> is
> > happening just the first time you hit the application (so you are
> without
> > a
> > cookie) in this case I think the servlet container is doing the right
> > thing
> > (it does not know you support cookies on first hit). This might cause
> > problems to some web server (e.g. apache for mod_jk connector) to
> resolve
> > urls.
> >
> > I think this is all that comes to my mind given the informations you
> gave
> > :-)
> >
>
--
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
Re: Help with jsessionid
Posted by Johan Maasing <jm...@gmail.com>.
You should probably give a little bit more information about what "the page
breaks" means, is the script not included? Does not run? The page does not
render?
The jsessionid is the servlet-containers session handling, it has nothing to
do with tapestry. Check the servlet specification for details but
essentially the servlet container tries to establish a session for the
browser. The servlet container does not know if the browser supports cookies
so for the first exchange it uses URL-rewriting to track the session.
On 4/17/07, Andrea Chiumenti <ki...@gmail.com> wrote:
>
> This is exactly the problem I'm having (i.e. a session initialization
> problem)
>
> It's happening this: I'm accessing an External page an I have this method
> fom IExternalPage:
>
> public void activateExternalPage(Object[] parameters, IRequestCycle cycle)
> {
> if ((parameters.length > 0) &&
> (parameters[0].toString().equalsIgnoreCase("reset"))) {
> Wizard wizard = (Wizard) getComponent("wizard");
> wizard.reset();
> setPerson(new Person());
> }
> getPerson();
> getCities();
> }
>
> where person and cities are injected ASO
> <inject property="person" type="state" object="wizardPerson"/>
> <inject property="cities" type="state" object="cities"/>
>
> all is in java 1.4
>
> When I access the page for the first time I have the jsessionid problem.
>
> How can I solve this issue ?
>
> kiuma
> On 4/17/07, Martino Piccinato < martino.piccinato@gmail.com> wrote:
> >
> > sorry just wanted to comment one thing more: if this session appending
> is
> > happening just the first time you hit the application (so you are
> without
> > a
> > cookie) in this case I think the servlet container is doing the right
> > thing
> > (it does not know you support cookies on first hit). This might cause
> > problems to some web server (e.g. apache for mod_jk connector) to
> resolve
> > urls.
> >
> > I think this is all that comes to my mind given the informations you
> gave
> > :-)
> >
>
Re: Help with jsessionid
Posted by Andrea Chiumenti <ki...@gmail.com>.
This is exactly the problem I'm having (i.e. a session initialization
problem)
It's happening this: I'm accessing an External page an I have this method
fom IExternalPage:
public void activateExternalPage(Object[] parameters, IRequestCycle cycle)
{
if ((parameters.length > 0) &&
(parameters[0].toString().equalsIgnoreCase("reset"))) {
Wizard wizard = (Wizard) getComponent("wizard");
wizard.reset();
setPerson(new Person());
}
getPerson();
getCities();
}
where person and cities are injected ASO
<inject property="person" type="state" object="wizardPerson"/>
<inject property="cities" type="state" object="cities"/>
all is in java 1.4
When I access the page for the first time I have the jsessionid problem.
How can I solve this issue ?
kiuma
On 4/17/07, Martino Piccinato < martino.piccinato@gmail.com> wrote:
>
> sorry just wanted to comment one thing more: if this session appending is
> happening just the first time you hit the application (so you are without
> a
> cookie) in this case I think the servlet container is doing the right
> thing
> (it does not know you support cookies on first hit). This might cause
> problems to some web server (e.g. apache for mod_jk connector) to resolve
> urls.
>
> I think this is all that comes to my mind given the informations you gave
> :-)
>
Re: Help with jsessionid
Posted by Martino Piccinato <ma...@gmail.com>.
sorry just wanted to comment one thing more: if this session appending is
happening just the first time you hit the application (so you are without a
cookie) in this case I think the servlet container is doing the right thing
(it does not know you support cookies on first hit). This might cause
problems to some web server (e.g. apache for mod_jk connector) to resolve
urls.
I think this is all that comes to my mind given the informations you gave
:-)
Re: Help with jsessionid
Posted by Martino Piccinato <ma...@gmail.com>.
Actually the asset url encoding is ultimately delegated to
javax.servlet.HTTPServletResponse.encodeURL which just rewrites url if
session traking is turned off or your browser does not support cookies. As
probably this is not the case it might be a bug in your servlet container.
On 4/17/07, Andrea Chiumenti <ki...@gmail.com> wrote:
>
> Hello, it's happening something very strange with my demo app. in T4.1.2.
>
> I've defined the a border component that contains a call to @Shell like:
> <component id="shell" type="Shell">
> <binding name="title" value="ognl:title"/>
> <binding name="delegate" value="new
> org.apache.tapestry.components.BlockRenderer(components.remainingHead)"/>
> <binding name="renderBaseTag" value="ognl:false" />
> <binding name="consoleEnabled" value="ognl:true" />
> <binding name="browserLogLevel" value="literal:ERROR"/>
> <binding name="tapestrySource" value="asset:coreJs"/>
> <binding name="dojoSource" value="asset:dojoSource"/>
> <binding name="dojoPath" value="asset:dojoPath"/>
> </component>
> <asset name="coreJs" path="/js/core.js"/>
> <asset name="dojoSource" path="/js/dojo/dojo.js"/>
> <asset name="dojoPath" path="/js/dojo/"/>
>
> the strange thing is that for a page it perfectly work
>
> but for another that seems identical (maybe I'm wrong) thigs are rendered
> like here:
>
> <script type="text/javascript">djConfig =
>
> {"isDebug":true,"debugContainerId":"debug","baseRelativePath":"/js/dojo/;jsessionid=14BA82F304BF5E5C9C1F84CB52E211A3","preventBackButtonFix":false,"parseWidgets":false,"locale":"en-us"}
> </script>
>
> <script type="text/javascript"
>
> src="/js/dojo/dojo.js;jsessionid=14BA82F304BF5E5C9C1F84CB52E211A3"></script>
> <script type="text/javascript">
> dojo.registerModulePath("tapestry", "/asset.svc?path=%2Ftapestry%2F");
> </script>
> <script type="text/javascript"
> src="/js/core.js;jsessionid=14BA82F304BF5E5C9C1F84CB52E211A3"></script>
>
>
> The attach of jsessionid breaks the page, and I even don't know why it is
> appended.
>
> I'm staled please help.
>
> Thx,
> kiuma
>