Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > My second Wee example, together with some more things.

Reply
Thread Tools

My second Wee example, together with some more things.

 
 
Joao Pedrosa
Guest
Posts: n/a
 
      02-23-2005
Hi,

I was just itching I guess to create my second Wee example. This time
I try to create a really really fake copy of the Joel on Software
site.

I posted a couple of screenshots of some application windows that I
created using Ruby-GNOME2 mainly to edit the tables for this example.

You can find more at:
http://sinsalabintrix.blogspot.com/2...evolution.html

Cheers,
Joao


 
Reply With Quote
 
 
 
 
Michael Neumann
Guest
Posts: n/a
 
      02-23-2005
Michael Neumann wrote:
> Joao Pedrosa wrote:
>
>> Hi,
>>
>> I was just itching I guess to create my second Wee example. This time
>> I try to create a really really fake copy of the Joel on Software
>> site.

>
>
> One minor thing: If you show a discussion on the right, you can no
> further click on another topic on the right (you have to click "back to


^^^^^
this should be "left"!

Regards,

Michael


 
Reply With Quote
 
 
 
 
Michael Neumann
Guest
Posts: n/a
 
      02-24-2005
Michael Neumann wrote:
> Joao Pedrosa wrote:
>
>> Hi,
>>
>>
>>> Well, you call @tread in Topics. If you do this, then of course the
>>> Topics component will not render itself and will not react on actions
>>> (until you answer from @tread).
>>> You should not use call in this situation, use #render and if
>>> statements.

>>
>>
>>
>> Done, thanks. Pretty easy once we have decided about it. hehe. 6
>> lines have been changed for this.
>>
>> About turning off the Session and creating and interpreting custom
>> URLs, could you give me some direction beforehand? It would be great
>> to try this out as soon as possible, because URL is a pending issue to
>> me.

>
>
> I'm not sure what the best way of doing this. Seaside has an updateUrl
> method, which is called for each component (similar to
> process_callbacks), and which can be used to modify the URL after an
> action has occured and processed, but before the redirect to the render
> phase is done.


There probably an easier way to accomplish that. Wee already supports
named_callbacks:

r.anchor.named_callback('test') { ... }

All you have to do is, after the action was invoked, to put the
action-callback name into the regual URL, e.g. from

# before action was invoked (URL generated from render phase)
/app/?test

to:

# after action was invoked (redirected URL)
/app/test

That should be pretty easy to do.

Regards,

Michael


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
a wee problem with a wifi homenetwork Smokem Computer Support 4 01-02-2005 11:38 AM
Just a wee IE problem Duende HTML 22 12-08-2004 08:25 AM
Pee-Wee's Playhouse, and TV show SEs Aaron J. Bossig DVD Video 4 06-21-2004 02:37 AM
IO Streams... I'm a wee bit confused here - any help appreciated. m.cantaloupe Java 3 05-14-2004 01:46 PM
how to Add different controls(textBox,DropDownList or some ) in the same column,based upon the value in the previous column (Say second Colum which contain dropdown with some values) ? Balaji ASP .Net Datagrid Control 0 07-07-2003 08:32 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57