Thanks for the input, ill try to come up with a clearer phrasing. 

// Tobias

On Oct 8, 2010, at 9:56 AM, Bert Leunis wrote:

> Thanks Tobias,
>  
> Is there a way I could have known that? I see some information about that in 
> the javadoc of info.magnolia.module.blossom.annotation.TabFactory. Three 
> valid arguments are named, but in any combination or order? I can't figure 
> that out.
>  
> Regards, Bert
>  
> Van: [email protected] [[email protected]] 
> namens Tobias Mattsson [[email protected]]
> Verzonden: donderdag 7 oktober 2010 19:03
> Aan: Magnolia User-List
> Onderwerp: Re: [magnolia-user] blossom dialog question
> 
> The DialogCreationContext is one of the available arguments to your method.
> 
> Do this:
> 
>> @TabFactory("Content")
>> public void content(TabBuilder tab, DialogCreationContext context) {
>> Content storageNode =context.getWebsiteNode();
> 
> 
> // Tobias
> 
> On Oct 7, 2010, at 11:52 AM, Bert Leunis wrote:
> 
>> Hello,
>>  
>> I am building a dialog using blossom. In the dialog the user has to choose a 
>> type first, and then can move on to fill fields that are specific for that 
>> type. When the dialog is created, I want to check if the type is already 
>> choosen. If not, I will show the 'select type' field, otherwise I can show 
>> controls specific for the already choosen type.
>>  
>> To get to the contents I like to use:
>>  
>> @TabFactory("Content")
>> public void content(TabBuilder tab) {
>> Content storageNode = tab.getTab().getStorageNode();
>>  
>> For a new dialog this node is null. Unfortunately, the storageNode is still 
>> null for a paragraph that already exists. I see that in the 
>> DialogCreationContext of the tab, the websiteNode is set with the paragraph 
>> content. But I cannot reach this: tab.getContext().getWebsiteNode() does not 
>> exist.
>>  
>> Is there another way to establish in the dialog at creation time what the 
>> content of the paragraph is?
>>  
>> Best regards, Bert
>> 
>> 
>> ----------------------------------------------------------------
>> For list details see
>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>> To unsubscribe, E-mail to: <[email protected]>
>> ----------------------------------------------------------------
> 
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to