You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Rahat Khan <ra...@yahoo.com> on 2006/08/14 09:14:03 UTC
JWCID changing the look & feel of the Static HTML mocks.
Dear All,
I am using Tapestry4 for my project. My problem is after adding JWCID in the HTML mocks,The
view of some of the mocks have been changed.That means the Static view of the mocks is now different from
the application view.But I want that the JWCID will not effect the original look and feel of the static
html mocks.
To be more specific with the problem,
I used the "Block" component to ignore a block of HTML code in the running application. But
this codes are viewable in static HTML. I want something just opposite.That is, a block of
HTML code will be visible in the Application but not in the static mocks.
Thanks in Advance.
Rahat.
---------------------------------
How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
Re: Possible to make any page your homepage?
Posted by "hv @ Fashion Content" <in...@fashioncontent.com>.
Have a look at
http://tapestry.apache.org/tapestry4/UsersGuide/friendly-urls.html
It looks like you have created a new page service, so you would want to make
an encoder/decoder for it.
Henrik
"James Sherwood" <js...@rgisolutions.com> skrev i en meddelelse
news:017a01c6c063$d88862f0$26066a4a@jameslwuo79ei7...
> We have designed a robust platform that lets them select any page they
> have created as their homepage.
>
> Currently the way we do it is the homepage is simply a javascript redirect
> to the page they choose.
>
> The problem is, when we do it this way thier hompage has a
> www.theirurl.com?service=vpage/1 style url.
>
> Is there any way around this to make the url just www.theirurl.com when
> they first hit thier homepage?
>
> Thanks,
> 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
Possible to make any page your homepage?
Posted by James Sherwood <js...@rgisolutions.com>.
We have designed a robust platform that lets them select any page they have
created as their homepage.
Currently the way we do it is the homepage is simply a javascript redirect
to the page they choose.
The problem is, when we do it this way thier hompage has a
www.theirurl.com?service=vpage/1 style url.
Is there any way around this to make the url just www.theirurl.com when they
first hit thier homepage?
Thanks,
James
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: JWCID changing the look & feel of the Static HTML mocks.
Posted by "hv @ Fashion Content" <in...@fashioncontent.com>.
Check that your CSS isn't affected by the extra div/spans used for Tapestry
flow control.
"Rahat Khan" <ra...@yahoo.com> skrev i en meddelelse
news:20060814071403.63436.qmail@web60720.mail.yahoo.com...
> Dear All,
> I am using Tapestry4 for my project. My problem is after adding JWCID
> in the HTML mocks,The
> view of some of the mocks have been changed.That means the Static view of
> the mocks is now different from
> the application view.But I want that the JWCID will not effect the
> original look and feel of the static
> html mocks.
>
> To be more specific with the problem,
>
> I used the "Block" component to ignore a block of HTML code in the
> running application. But
> this codes are viewable in static HTML. I want something just
> opposite.That is, a block of
> HTML code will be visible in the Application but not in the static mocks.
>
> Thanks in Advance.
>
> Rahat.
>
>
>
> ---------------------------------
> How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call
> rates.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: JWCID changing the look & feel of the Static HTML mocks
Posted by Nick Westgate <ni...@key-planning.co.jp>.
Hi Rahat.
As you should expect, Howard's replies are usually insightful. ;-)
Here however, his idea (which he beat me to) probably relies on you
knowing all about parameters:
http://tapestry.apache.org/tapestry4/UsersGuide/template.html#template.components.formal
In short, the style parameter in the template is an informal parameter.
If your component also generates a style parameter (via .page file etc)
it overrides the template. That's how you can make it visible in the app.
Cheers,
Nick.
Rahat wrote:
> Many thanks For reply Howard.
>
> But this will not be visible in the application too. I want something that
> will be visible in the
> application but not in the Static Mocks. For example:
>
> in "foobar.html" I have a "Direclink" component like this:
>
> < a jwcid="myLink@DirectLink" listener="ognl:listeners.dothis"
> parameters="ognl: id">
> My Link
> < /a>
>
> When I open the static html mocks(Tomcat is not running, just open
> "foobar.html" page in a browser)
> this link shows up. Although as a non working Item. But I dont want to show
> it in my static mocks.
> your previous Idea hides it from Static Html but also from the application.
>
> thanks in advance.
>
>
>
> Howard Lewis Ship wrote:
>
>>So ... you want the Block to be invisible when previewing. How about:
>>
>><div jwcid="myblock@Block" style="display:none;">
>>
>> ...
>>
>></div>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: JWCID changing the look & feel of the Static HTML mocks
Posted by an...@di.uoa.gr.
Another idea is to turn the block that you want hidden
into a component and include it like this:
<span jwcid="@MyLink"
listener="ognl:listeners.dothis" parameters="ognl: id"/>
>From Rahat <ra...@gmail.com>:
>
> Many thanks For reply Howard.
>
> But this will not be visible in the application too. I want something that
> will be visible in the
> application but not in the Static Mocks. For example:
>
> in "foobar.html" I have a "Direclink" component like this:
>
> < a jwcid="myLink@DirectLink" listener="ognl:listeners.dothis"
> parameters="ognl: id">
> My Link
> < /a>
>
> When I open the static html mocks(Tomcat is not running, just open
> "foobar.html" page in a browser)
> this link shows up. Although as a non working Item. But I dont want to show
> it in my static mocks.
> your previous Idea hides it from Static Html but also from the application.
>
> thanks in advance.
>
>
>
> Howard Lewis Ship wrote:
> >
> > So ... you want the Block to be invisible when previewing. How about:
> >
> > <div jwcid="myblock@Block" style="display:none;">
> >
> > ...
> >
> > </div>
> >
> >
> > On 8/14/06, Karthik N <ka...@gmail.com> wrote:
> >>
> >> can you try prefixing your block with <!--
> >>
> >> and suffixing it with -->
> >>
> >> i think that should do the trick
> >>
> >>
> >> On 8/14/06, Rahat Khan <ra...@yahoo.com> wrote:
> >> >
> >> > Dear All,
> >> > I am using Tapestry4 for my project. My problem is after adding
> >> JWCID
> >> > in the HTML mocks,The
> >> > view of some of the mocks have been changed.That means the Static view
> >> of
> >> > the mocks is now different from
> >> > the application view.But I want that the JWCID will not effect the
> >> > original look and feel of the static
> >> > html mocks.
> >> >
> >> > To be more specific with the problem,
> >> >
> >> > I used the "Block" component to ignore a block of HTML code in the
> >> > running application. But
> >> > this codes are viewable in static HTML. I want something just
> >> > opposite.That is, a block of
> >> > HTML code will be visible in the Application but not in the static
> >> mocks.
> >> >
> >> > Thanks in Advance.
> >> >
> >> > Rahat.
> >> >
> >> >
> >> >
> >> > ---------------------------------
> >> > How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call
> >> > rates.
> >> >
> >>
> >>
> >>
> >> --
> >> Thanks, Karthik
> >>
> >>
> >
> >
> > --
> > Howard M. Lewis Ship
> > TWD Consulting, Inc.
> > Independent J2EE / Open-Source Java Consultant
> > Creator and PMC Chair, Apache Tapestry
> > Creator, Apache HiveMind
> >
> > Professional Tapestry training, mentoring, support
> > and project work. http://howardlewisship.com
> >
> >
>
> --
> View this message in context:
>
http://www.nabble.com/JWCID-changing-the-look---feel-of-the-Static-HTML-mocks.-tf2102960.html#a5828273
> Sent from the Tapestry - User forum at Nabble.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: JWCID changing the look & feel of the Static HTML mocks
Posted by Rahat <ra...@gmail.com>.
Working!! Thanks a lot Nick.
I told my component to ignore the informal-parameters.
And it is now working sweetly.
Cheers.
Rahat
Nick Westgate wrote:
>
> Hi Rahat.
>
> Thinking further, if you want to keep your components implicit
> you could pay the price of another (trivial) implicit component:
>
> <span jwcid="@Ghost" style="display:none;">
> < a jwcid="myLink@DirectLink" listener="ognl:listeners.dothis" ...>
> My Link
> < /a>
> </span>
>
> The Ghost component would render it's contents but omit itself
> and thus disappear at runtime, revealing its enclosed tags etc.
> (Another technique would be to just omit informal parameters.)
> Here's some source, but I haven't tested it on Tapestry 4.
>
> Cheers,
> Nick.
>
>
> Ghost.jwc:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE component-specification PUBLIC
> "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
> "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
> <component-specification class="jp.co.key_planning.tapestry.Ghost">
> <description>
> Disappears at runtime! (Only enclosed tags and components are
> rendered.)
> </description>
> </component-specification>
>
> Ghost.java:
> package jp.co.key_planning.tapestry;
>
> import org.apache.tapestry.AbstractComponent;
> import org.apache.tapestry.IMarkupWriter;
> import org.apache.tapestry.IRequestCycle;
>
> public abstract class Ghost extends AbstractComponent
> {
> protected void renderComponent(IMarkupWriter writer, IRequestCycle
> cycle)
> {
> renderBody(writer, cycle);
> }
> }
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/JWCID-changing-the-look---feel-of-the-Static-HTML-mocks.-tf2102960.html#a5846065
Sent from the Tapestry - User forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: JWCID changing the look & feel of the Static HTML mocks
Posted by Nick Westgate <ni...@key-planning.co.jp>.
Hi Rahat.
Thinking further, if you want to keep your components implicit
you could pay the price of another (trivial) implicit component:
<span jwcid="@Ghost" style="display:none;">
< a jwcid="myLink@DirectLink" listener="ognl:listeners.dothis" ...>
My Link
< /a>
</span>
The Ghost component would render it's contents but omit itself
and thus disappear at runtime, revealing its enclosed tags etc.
(Another technique would be to just omit informal parameters.)
Here's some source, but I haven't tested it on Tapestry 4.
Cheers,
Nick.
Ghost.jwc:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE component-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 4.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
<component-specification class="jp.co.key_planning.tapestry.Ghost">
<description>
Disappears at runtime! (Only enclosed tags and components are rendered.)
</description>
</component-specification>
Ghost.java:
package jp.co.key_planning.tapestry;
import org.apache.tapestry.AbstractComponent;
import org.apache.tapestry.IMarkupWriter;
import org.apache.tapestry.IRequestCycle;
public abstract class Ghost extends AbstractComponent
{
protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
{
renderBody(writer, cycle);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: JWCID changing the look & feel of the Static HTML mocks
Posted by Rahat <ra...@gmail.com>.
Many thanks For reply Howard.
But this will not be visible in the application too. I want something that
will be visible in the
application but not in the Static Mocks. For example:
in "foobar.html" I have a "Direclink" component like this:
< a jwcid="myLink@DirectLink" listener="ognl:listeners.dothis"
parameters="ognl: id">
My Link
< /a>
When I open the static html mocks(Tomcat is not running, just open
"foobar.html" page in a browser)
this link shows up. Although as a non working Item. But I dont want to show
it in my static mocks.
your previous Idea hides it from Static Html but also from the application.
thanks in advance.
Howard Lewis Ship wrote:
>
> So ... you want the Block to be invisible when previewing. How about:
>
> <div jwcid="myblock@Block" style="display:none;">
>
> ...
>
> </div>
>
>
> On 8/14/06, Karthik N <ka...@gmail.com> wrote:
>>
>> can you try prefixing your block with <!--
>>
>> and suffixing it with -->
>>
>> i think that should do the trick
>>
>>
>> On 8/14/06, Rahat Khan <ra...@yahoo.com> wrote:
>> >
>> > Dear All,
>> > I am using Tapestry4 for my project. My problem is after adding
>> JWCID
>> > in the HTML mocks,The
>> > view of some of the mocks have been changed.That means the Static view
>> of
>> > the mocks is now different from
>> > the application view.But I want that the JWCID will not effect the
>> > original look and feel of the static
>> > html mocks.
>> >
>> > To be more specific with the problem,
>> >
>> > I used the "Block" component to ignore a block of HTML code in the
>> > running application. But
>> > this codes are viewable in static HTML. I want something just
>> > opposite.That is, a block of
>> > HTML code will be visible in the Application but not in the static
>> mocks.
>> >
>> > Thanks in Advance.
>> >
>> > Rahat.
>> >
>> >
>> >
>> > ---------------------------------
>> > How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call
>> > rates.
>> >
>>
>>
>>
>> --
>> Thanks, Karthik
>>
>>
>
>
> --
> Howard M. Lewis Ship
> TWD Consulting, Inc.
> Independent J2EE / Open-Source Java Consultant
> Creator and PMC Chair, Apache Tapestry
> Creator, Apache HiveMind
>
> Professional Tapestry training, mentoring, support
> and project work. http://howardlewisship.com
>
>
--
View this message in context: http://www.nabble.com/JWCID-changing-the-look---feel-of-the-Static-HTML-mocks.-tf2102960.html#a5828273
Sent from the Tapestry - User forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: JWCID changing the look & feel of the Static HTML mocks
Posted by Howard Lewis Ship <hl...@gmail.com>.
So ... you want the Block to be invisible when previewing. How about:
<div jwcid="myblock@Block" style="display:none;">
...
</div>
On 8/14/06, Karthik N <ka...@gmail.com> wrote:
>
> can you try prefixing your block with <!--
>
> and suffixing it with -->
>
> i think that should do the trick
>
>
> On 8/14/06, Rahat Khan <ra...@yahoo.com> wrote:
> >
> > Dear All,
> > I am using Tapestry4 for my project. My problem is after adding
> JWCID
> > in the HTML mocks,The
> > view of some of the mocks have been changed.That means the Static view
> of
> > the mocks is now different from
> > the application view.But I want that the JWCID will not effect the
> > original look and feel of the static
> > html mocks.
> >
> > To be more specific with the problem,
> >
> > I used the "Block" component to ignore a block of HTML code in the
> > running application. But
> > this codes are viewable in static HTML. I want something just
> > opposite.That is, a block of
> > HTML code will be visible in the Application but not in the static
> mocks.
> >
> > Thanks in Advance.
> >
> > Rahat.
> >
> >
> >
> > ---------------------------------
> > How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call
> > rates.
> >
>
>
>
> --
> Thanks, Karthik
>
>
--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
Re: JWCID changing the look & feel of the Static HTML mocks
Posted by Karthik N <ka...@gmail.com>.
can you try prefixing your block with <!--
and suffixing it with -->
i think that should do the trick
On 8/14/06, Rahat Khan <ra...@yahoo.com> wrote:
>
> Dear All,
> I am using Tapestry4 for my project. My problem is after adding JWCID
> in the HTML mocks,The
> view of some of the mocks have been changed.That means the Static view of
> the mocks is now different from
> the application view.But I want that the JWCID will not effect the
> original look and feel of the static
> html mocks.
>
> To be more specific with the problem,
>
> I used the "Block" component to ignore a block of HTML code in the
> running application. But
> this codes are viewable in static HTML. I want something just
> opposite.That is, a block of
> HTML code will be visible in the Application but not in the static mocks.
>
> Thanks in Advance.
>
> Rahat.
>
>
>
> ---------------------------------
> How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call
> rates.
>
--
Thanks, Karthik