displaying news

View: New views
3 Messages — Rating Filter:   Alert me  

displaying news

by Antonin Karasek-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

People help! ;-)

I'm developing a JSF application and I need to do a really stupid thing.
I need to display an array of values. In PHP it would look like this:

<? foreach($newsList as $news) { ?>
<h3><?=$news["title"]?></h3>
<p><?=$news["text"]?></p>
<? } ?>

I'm not able to find a way, how to do this in JSF. The only element, I
know to be able to display a list is <webuijsf:table />

Any suggestions?

Many thanks.

Regards
        Tony

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Parent Message unknown Re: displaying news

by HandyGeek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have you looked at Woodstock's listbox, and/or comboBox controls?

 -------------- Original message ----------------------
From: Antonin Karasek <tonda@...>

> People help! ;-)
>
> I'm developing a JSF application and I need to do a really stupid thing.
> I need to display an array of values. In PHP it would look like this:
>
> <? foreach($newsList as $news) { ?>
> <h3><?=$news["title"]?></h3>
> <p><?=$news["text"]?></p>
> <? } ?>
>
> I'm not able to find a way, how to do this in JSF. The only element, I
> know to be able to display a list is <webuijsf:table />
>
> Any suggestions?
>
> Many thanks.
>
> Regards
> Tony
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: displaying news

by Antonin Karasek-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm probably be missing something - but both listbox and comboBox
displays something like this:

<select ...>
<option>..</option>
....
</select>

but I need:

<h3>header</h3>
<p>text</p>
<h3>header 2</h3>
<p>text 2</p>
....
<h3>header n</h3>
<p>text n</p>

Is it possible to configure listbox to display what I need?

Many thanks
        Tony

thompsonwd40@... wrote:

> Have you looked at Woodstock's listbox, and/or comboBox controls?
>
>  -------------- Original message ----------------------
> From: Antonin Karasek <tonda@...>
>> People help! ;-)
>>
>> I'm developing a JSF application and I need to do a really stupid thing.
>> I need to display an array of values. In PHP it would look like this:
>>
>> <? foreach($newsList as $news) { ?>
>> <h3><?=$news["title"]?></h3>
>> <p><?=$news["text"]?></p>
>> <? } ?>
>>
>> I'm not able to find a way, how to do this in JSF. The only element, I
>> know to be able to display a list is <webuijsf:table />
>>
>> Any suggestions?
>>
>> Many thanks.
>>
>> Regards
>> Tony
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...